]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible-pr-syntax-check: pin ansible-lint 1445/head
authorDimitri Savineau <dsavinea@redhat.com>
Thu, 5 Dec 2019 14:48:17 +0000 (09:48 -0500)
committerDimitri Savineau <dsavinea@redhat.com>
Thu, 5 Dec 2019 14:52:56 +0000 (09:52 -0500)
Latest ansible-lint release (4.2.0) drops ansible 2.6 support so the
syntax-check job isn't compatible with the ceph-ansible stable-3.2
branch which uses ansible 2.6.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
ceph-ansible-pr-syntax-check/build/build

index 73e3ca0645436b82daf7121c3021e2ad5ac21e5f..98a801946f845129f92e0cacb3f5de8ecdbcfb00 100644 (file)
@@ -9,7 +9,11 @@ set -e
 virtualenv $TEMPVENV
 "$VENV"/pip install --upgrade pip
 "$VENV"/pip install -r "$WORKSPACE"/ceph-ansible/requirements.txt
-"$VENV"/pip install ansible-lint
+if [[ "$ghprbTargetBranch" == "stable-3.2" ]]; then
+  "$VENV"/pip install 'ansible-lint<4.2'
+else
+  "$VENV"/pip install ansible-lint
+fi
 
 
 #############