Skip to content

Commit

Permalink
Merge pull request kubernetes#3420 from zmerlynn/fix_cluster_api_version
Browse files Browse the repository at this point in the history
Fix kubernetes-e2e-gke build
  • Loading branch information
zmerlynn committed Jan 13, 2015
2 parents 26a6628 + ba618db commit dd24e7e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hack/jenkins/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:-<not set>}" # optional, for GKE, set CLUSTER_API_VERSION to git hash
echo "--------------------------------------------------------------------------------"

# GCE variables
Expand All @@ -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
Expand Down

0 comments on commit dd24e7e

Please sign in to comment.