Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: override csi_upgrade_version from build.env #4007

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions upgrade-tests.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,17 @@ node('cico-workspace') {
podman_pull(ci_registry, "docker.io", "library/vault:1.8.5")
ssh "./podman2minikube.sh docker.io/library/vault:1.8.5"
}
stage("set csi-upgrade-version from build.env") {
def build_env_csi_upgrade_version = sh(
script: 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@${CICO_NODE} \'source /opt/build/go/src/github.com/ceph/ceph-csi/build.env && echo ${CSI_UPGRADE_VERSION}\'',
returnStdout: true
).trim()

if (build_env_csi_upgrade_version != '') {
// override csi_upgrade_version with CSI_UPGRADE_VERSION value from build.env.
csi_upgrade_version= build_env_csi_upgrade_version
}
}
stage("run ${test_type} upgrade tests") {
timeout(time: 120, unit: 'MINUTES') {
upgrade_args = "--test-cephfs=false --test-rbd=true --upgrade-testing=true"
Expand Down