Skip to content
Snippets Groups Projects
Unverified Commit 1818993a authored by Max Gautier's avatar Max Gautier
Browse files

CI: for upgrade testing, checkout old version before provisioning

Otherwise, modifying the test inventory + it's expected structure will
always fail.
parent 88b6f08e
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,15 @@ else
fi
fi
# Check out latest tag if testing upgrade
if [ "${UPGRADE_TEST}" != "false" ]; then
git fetch --all && git checkout "$KUBESPRAY_VERSION"
# Checkout the CI vars file so it is available
git checkout "${CI_COMMIT_SHA}" tests/files/${CI_JOB_NAME}.yml
git checkout "${CI_COMMIT_SHA}" ${CI_TEST_REGISTRY_MIRROR}
git checkout "${CI_COMMIT_SHA}" ${CI_TEST_SETTING}
fi
# needed for ara not to complain
export TZ=UTC
......@@ -41,15 +50,6 @@ if [[ "$CI_JOB_NAME" =~ "opensuse" ]]; then
ansible all -m raw -a 'zypper --gpg-auto-import-keys refresh'
fi
# Check out latest tag if testing upgrade
if [ "${UPGRADE_TEST}" != "false" ]; then
git fetch --all && git checkout "$KUBESPRAY_VERSION"
# Checkout the CI vars file so it is available
git checkout "${CI_COMMIT_SHA}" tests/files/${CI_JOB_NAME}.yml
git checkout "${CI_COMMIT_SHA}" ${CI_TEST_REGISTRY_MIRROR}
git checkout "${CI_COMMIT_SHA}" ${CI_TEST_SETTING}
fi
run_playbook () {
playbook=$1
shift
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment