From: Yolanda Robla Date: Thu, 5 Mar 2020 07:20:35 +0000 (+0100) Subject: Retry wait for install a max of 3 times X-Git-Tag: akraino_r3~13 X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F81%2F2281%2F1;p=kni%2Finstaller.git Retry wait for install a max of 3 times Signed-off-by: Yolanda Robla Change-Id: I79a87f35cbd907dc6d34366fd1d58774f797fca7 --- diff --git a/ci/kni_deploy_libvirt.sh b/ci/kni_deploy_libvirt.sh index f09d573..95c63d8 100755 --- a/ci/kni_deploy_libvirt.sh +++ b/ci/kni_deploy_libvirt.sh @@ -59,9 +59,9 @@ source $HOME/.kni/${SITE_NAME}/profile.env sudo -E /usr/bin/openshift-install create cluster --dir=/$HOME/.kni/${SITE_NAME}/final_manifests 2>&1 | tee ${WORKSPACE}/libvirt_deploy.log || true # additional step of wait for installer to complete -sudo -E /usr/bin/openshift-install wait-for install-complete --dir=/$HOME/.kni/${SITE_NAME}/final_manifests -STATUS=$? -popd +for i in 1 2 3; do + sudo -E /usr/bin/openshift-install wait-for install-complete --dir=/$HOME/.kni/${SITE_NAME}/final_manifests && break +done # output tfstate echo "metadata.json for removing cluster"