This approach doesn't work as expected, it skips almost all jobs.
Setting back the condition in the build script until we figure out
something better.
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
popd
# In the same logic, clean fact cache
rm -rf $HOME/ansible/facts/*
+
+# Skip these scenarios, they don't exist.
+[[ "$ghprbTargetBranch" == stable-3.1 && "$SCENARIO" =~ lvm_batch|lvm_osds ]] ||
+[[ "$ghprbTargetBranch" =~ stable-3 && "$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: