diff --git a/hack/jenkins/e2e.sh b/hack/jenkins/e2e.sh index 9558edf2255..b90df9b01cc 100755 --- a/hack/jenkins/e2e.sh +++ b/hack/jenkins/e2e.sh @@ -326,6 +326,13 @@ if [[ "${E2E_UP,,}" == "true" || "${JENKINS_FORCE_GET_TARS:-}" =~ ^[yY]$ ]]; the bucket="${varr[0]}" githash="${varr[1]}" echo "$bucket / $githash" + elif [[ ${JENKINS_USE_SERVER_VERSION:-} =~ ^[yY]$ ]]; then + # for GKE we can use server default version. + bucket="release" + msg=$(gcloud ${CMD_GROUP} container get-server-config --project=${PROJECT} --zone=${ZONE} | grep defaultClusterVersion) + # msg will look like "defaultClusterVersion: 1.0.1". Strip + # everything up to, including ": " + githash="v${msg##*: }" else # The "ci" bucket is for builds like "v0.15.0-468-gfa648c1" bucket="ci"