Skip to content
Snippets Groups Projects
Commit a4a35f8a authored by Maxime Guyot's avatar Maxime Guyot Committed by Kubernetes Prow Robot
Browse files

Git checkout a specific version for testing upgrades (#4653)

parent 82119ca9
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,9 @@ before_script: ...@@ -36,7 +36,9 @@ before_script:
.job: &job .job: &job
tags: tags:
- packet - packet
image: quay.io/kubespray/kubespray:v2.9.0 variables:
KUBESPRAY_VERSION: v2.9.0
image: quay.io/kubespray/kubespray:$KUBESPRAY_VERSION
.testcases: &testcases .testcases: &testcases
<<: *job <<: *job
......
...@@ -10,7 +10,7 @@ echo ${PWD} ...@@ -10,7 +10,7 @@ echo ${PWD}
cd tests && make create-${CI_PLATFORM} -s ; cd - cd tests && make create-${CI_PLATFORM} -s ; cd -
# Check out latest tag if testing upgrade # Check out latest tag if testing upgrade
test "${UPGRADE_TEST}" != "false" && git fetch --all && git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) test "${UPGRADE_TEST}" != "false" && git fetch --all && git checkout "$KUBESPRAY_VERSION"
# Checkout the CI vars file so it is available # Checkout the CI vars file so it is available
test "${UPGRADE_TEST}" != "false" && git checkout "${CI_BUILD_REF}" tests/files/${CI_JOB_NAME}.yml test "${UPGRADE_TEST}" != "false" && git checkout "${CI_BUILD_REF}" tests/files/${CI_JOB_NAME}.yml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment