Skip to content
Snippets Groups Projects
Unverified Commit bfa468c7 authored by Maxime Guyot's avatar Maxime Guyot Committed by GitHub
Browse files

Ensure upgrade CI jobs are named correctly (#5909)

parent 6318bb9f
No related branches found
No related tags found
No related merge requests found
......@@ -2,9 +2,19 @@
set -euxo pipefail
echo "CI_JOB_NAME is $CI_JOB_NAME"
pwd
ls
echo ${PWD}
if [[ "$CI_JOB_NAME" =~ "upgrade" ]]; then
if [ "${UPGRADE_TEST}" == "false" ]; then
echo "Job name contains 'upgrade', but UPGRADE_TEST='false'"
exit 1
fi
else
if [ "${UPGRADE_TEST}" != "false" ]; then
echo "UPGRADE_TEST!='false', but job names does not contain 'upgrade'"
exit 1
fi
fi
export ANSIBLE_REMOTE_USER=$SSH_USER
export ANSIBLE_BECOME=true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment