]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible-prs: don't display podman job on github on stable-3.2 1409/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 9 Oct 2019 05:10:46 +0000 (07:10 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 9 Oct 2019 05:41:20 +0000 (07:41 +0200)
This should avoid to display this job on the github status.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
ceph-ansible-prs/build/build
ceph-ansible-prs/config/definitions/ceph-ansible-prs.yml

index 8e73a9164c46746310b451dc974a039241facd7e..e155b1a08075d29bcddf2c7cbbfea57126b0a12d 100644 (file)
@@ -27,6 +27,3 @@ done
 popd
 # In the same logic, clean fact cache
 rm -rf $HOME/ansible/facts/*
-
-# stable-3.2 doesn't support podman.
-[[ "$ghprbTargetBranch" == "stable-3.2" && "$SCENARIO" == "podman" ]] || start_tox
index cf9e45e7e72804b0f4850662a8f26185029e9ac7..f789aa9ff804d9fc4136d336edfd5d9ac6e476e9 100644 (file)
               echo "Only docs were modified.  Skipping the rest of the job."
               exit 1
             fi
+            if [[ "$ghprbTargetBranch" =~ stable-3. && "$SCENARIO" == "podman" ]]; then
+              echo "This scenario isn't available on this branch."
+              exit 1
+            fi
+            if [[ "$ghprbTargetBranch" == stable-3.1 && "$SCENARIO" =~ lvm_batch|lvm_osds ]]; then
+              echo "This scenario isn't available on this branch."
+              exit 1
+            fi
           on-evaluation-failure: dont-run
           steps:
             - shell: