From ba618db2267a28f1f9b95e76fdce41e6997c1775 Mon Sep 17 00:00:00 2001 From: Zach Loafman Date: Mon, 12 Jan 2015 16:52:34 -0800 Subject: [PATCH] Fix kubernetes-e2e-gke build Got a little aggressive combining options here. Accidentally forgot that this parameter would bork normal GKE. --- hack/jenkins/e2e.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hack/jenkins/e2e.sh b/hack/jenkins/e2e.sh index a42e48977596b..2aacff78cf76f 100755 --- a/hack/jenkins/e2e.sh +++ b/hack/jenkins/e2e.sh @@ -46,6 +46,7 @@ echo "E2E_CLUSTER_NAME: ${E2E_CLUSTER_NAME}" # Name of the cluster (e.g. " echo "E2E_NETWORK: ${E2E_NETWORK}" # Name of the network (e.g. "e2e") echo "E2E_ZONE: ${E2E_ZONE}" # Name of the GCE zone (e.g. "us-central1-f") echo "E2E_OPT: ${E2E_OPT}" # hack/e2e.go options +echo "E2E_SET_CLUSTER_API_VERSION: ${E2E_SET_CLUSTER_API_VERSION:-}" # optional, for GKE, set CLUSTER_API_VERSION to git hash echo "--------------------------------------------------------------------------------" # GCE variables @@ -71,8 +72,10 @@ tar -xzf kubernetes.tar.gz tar -xzf kubernetes-test.tar.gz cd kubernetes -# This variable is only relevant on GKE-CI -export CLUSTER_API_VERSION=$(echo ${GITHASH} | cut -c 2-) +# Set by GKE-CI to change the CLUSTER_API_VERSION to the git version +if [[ ! -z ${E2E_SET_CLUSTER_API_VERSION:-} ]]; then + export CLUSTER_API_VERSION=$(echo ${GITHASH} | cut -c 2-) +fi go run ./hack/e2e.go ${E2E_OPT} -v -down go run ./hack/e2e.go ${E2E_OPT} -v -up