From 8d1b161d4ff46f837a7869f5683c75c931f77cf9 Mon Sep 17 00:00:00 2001 From: Tom Wilkie Date: Thu, 7 May 2015 18:23:24 +0000 Subject: [PATCH] Use circleci build number instead of git hash, as we can have multiple builds for a given hash. --- test/gce.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/gce.sh b/test/gce.sh index 823a76b4..829ac8f4 100755 --- a/test/gce.sh +++ b/test/gce.sh @@ -14,8 +14,8 @@ TEMPLATE_NAME="test-template" ZONE=us-central1-a NUM_HOSTS=2 SUFFIX="" -if [ -n "$CIRCLECI" -a -n "$CIRCLE_SHA1" ]; then - SUFFIX="-${CIRCLE_SHA1:0:7}" +if [ -n "$CIRCLECI" ]; then + SUFFIX="-${CIRCLE_BUILD_NUM}" fi # Setup authentication