This should avoid to display this job on the github status.
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
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
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: