mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
Merge pull request #12060 from jlowdermilk/jenkins-default-version
Allow gke to use server-default version for jenkins runs
This commit is contained in:
commit
2a397671bb
@ -329,6 +329,13 @@ if [[ "${E2E_UP,,}" == "true" || "${JENKINS_FORCE_GET_TARS:-}" =~ ^[yY]$ ]]; the
|
|||||||
bucket="${varr[0]}"
|
bucket="${varr[0]}"
|
||||||
githash="${varr[1]}"
|
githash="${varr[1]}"
|
||||||
echo "$bucket / $githash"
|
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
|
else
|
||||||
# The "ci" bucket is for builds like "v0.15.0-468-gfa648c1"
|
# The "ci" bucket is for builds like "v0.15.0-468-gfa648c1"
|
||||||
bucket="ci"
|
bucket="ci"
|
||||||
|
Loading…
Reference in New Issue
Block a user