You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by jb...@apache.org on 2018/08/31 16:30:58 UTC

[geode] branch develop updated: [GEODE-5664] delete instance before trying to create it.

This is an automated email from the ASF dual-hosted git repository.

jbarrett pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/develop by this push:
     new 8dde884  [GEODE-5664] delete instance before trying to create it.
8dde884 is described below

commit 8dde8844648709ceaee9e5c1158733a147071aaf
Author: Patrick Rhomberg <pr...@pivotal.io>
AuthorDate: Thu Aug 30 10:50:57 2018 -0700

    [GEODE-5664] delete instance before trying to create it.
    
    Signed-off-by: Sean Goller <sg...@pivotal.io>
---
 ci/scripts/start_instance.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ci/scripts/start_instance.sh b/ci/scripts/start_instance.sh
index 3bee7f9..65c289d 100755
--- a/ci/scripts/start_instance.sh
+++ b/ci/scripts/start_instance.sh
@@ -74,6 +74,8 @@ while true; do
     LABELS="instance_type=heavy-lifter,time-to-live=${TTL},job-name=${SANITIZED_BUILD_JOB_NAME},pipeline-name=${SANITIZED_BUILD_PIPELINE_NAME},build-name=${SANITIZED_BUILD_NAME}"
 
     set +e
+# Try to kill any existing machine before starting
+    gcloud compute --project=${PROJECT} instances delete ${INSTANCE_NAME} --zone=${ZONE} --delete-disks=all -q
     INSTANCE_INFORMATION=$(gcloud compute --project=${PROJECT} instances create ${INSTANCE_NAME} \
       --zone=${ZONE} \
       --machine-type=custom-${CPUS}-${RAM_MEGABYTES} \