From: Holger Levsen Date: Thu, 8 Nov 2012 12:22:42 +0000 (+0100) Subject: check for 10min if testserver came up again X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=b69f93e563f0b9447f7c33d2ec5208c5a97b7d0d;p=profitbricks%2Fjenkins-build-scripts.git check for 10min if testserver came up again --- diff --git a/liveboot_testdeploy.sh b/liveboot_testdeploy.sh index ee7c282..898e533 100755 --- a/liveboot_testdeploy.sh +++ b/liveboot_testdeploy.sh @@ -31,8 +31,21 @@ cat /etc/jenkins/pserver2.ipmi | ipmitool -H 192.168.178.49 -U ADMIN -a chassis sleep 2 ping -c 1 $TESTSERVER || true -sleep 60 -ping -c 1 $TESTSERVER - -figlet "OK" +for i in $(seq 1 10) ; do + sleep 60 + if $(ping -c 1 $TESTSERVER) ; then + break + fi +done + +if $(ping -c 1 $TESTSERVER) ; then + figlet Ok + echo "$TESTSERVER pings again, so we assume it's up." + echo "Please continue manual testing of $(basedir $SOURCE_DIR)" +else + figlet "Warning" + echo "$TESTSERVER still down, please investigate." + exit 1 +fi +