From 12ea9cb1db4bdd71857fc16d3293da37fe98c29a Mon Sep 17 00:00:00 2001 From: Jeff Grafton Date: Wed, 24 Aug 2016 00:27:05 -0700 Subject: [PATCH] Set CLOUDSDK_CONFIG to an explicit consistent value in e2e-runner --- hack/jenkins/e2e-runner.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hack/jenkins/e2e-runner.sh b/hack/jenkins/e2e-runner.sh index de73a09970..19bc83aefb 100755 --- a/hack/jenkins/e2e-runner.sh +++ b/hack/jenkins/e2e-runner.sh @@ -48,6 +48,10 @@ STAGE_KUBEMARK="KUBEMARK" : ${KUBE_GCS_RELEASE_BUCKET:="kubernetes-release"} : ${KUBE_GCS_DEV_RELEASE_BUCKET:="kubernetes-release-dev"} +# Explicitly set config path so staging gcloud (if installed_ uses the same path +# as release +export CLOUDSDK_CONFIG="${WORKSPACE}/.config/gcloud" + # record_command runs the command and records its output/error messages in junit format # it expects the first argument to be the class and the second to be the name of the command # Example: @@ -228,8 +232,6 @@ if [[ -n "${CLOUDSDK_BUCKET:-}" ]]; then mv ~/$(basename "${CLOUDSDK_BUCKET}") ~/repo export CLOUDSDK_COMPONENT_MANAGER_SNAPSHOT_URL=file://${HOME}/repo/components-2.json install_google_cloud_sdk_tarball ~/repo/google-cloud-sdk.tar.gz ~/cloudsdk - # TODO: is this necessary? this won't work inside Docker currently. - export CLOUDSDK_CONFIG=/var/lib/jenkins/.config/gcloud fi # GCI specific settings.