]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible-syntax: fix broken job 1819/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 21 May 2021 11:45:35 +0000 (13:45 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 21 May 2021 11:45:35 +0000 (13:45 +0200)
commit b09f6470745a09ce4fce0265cb7a22a56b049886 supposed to fix
regression introduced by e302eaabb977f3e93b1a7005c879f4b2eba581fc missed
the ceph-ansible-pr-syntax-check job, so the CI is still failing like
following:

```
[ceph-ansible-pr-syntax-check] $ /bin/bash /tmp/jenkins6031146002439656501.sh
+ set -e
+ virtualenv
You must provide a DEST_DIR
Usage: virtualenv [OPTIONS] DEST_DIR
```

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
ceph-ansible-pr-syntax-check/build/build

index 4383fec5ab6beab4c9a6688738a91b3a160c154f..7ab9cc029354fced4a733c6cebc5b9dedcc2696c 100644 (file)
@@ -6,7 +6,9 @@ set -e
 # shellcheck disable=SC2034
 # force virtualenv to be created earlier for this occurence, so we are not stuck because of ansible-lint dependencie,
 # which would enforce latest ansible version to be installed.
-virtualenv $TEMPVENV
+TEMPVENV=$(create_venv_dir)
+VENV=${TEMPVENV}/bin
+
 "$VENV"/pip install --upgrade pip
 "$VENV"/pip install -r "$WORKSPACE"/ceph-ansible/requirements.txt
 if [[ "$ghprbTargetBranch" == "stable-3.2" ]]; then