]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
check for 10min if testserver came up again
authorHolger Levsen <holger@layer-acht.org>
Thu, 8 Nov 2012 12:22:42 +0000 (13:22 +0100)
committerHolger Levsen <holger@layer-acht.org>
Thu, 8 Nov 2012 12:22:42 +0000 (13:22 +0100)
liveboot_testdeploy.sh

index ee7c282847edcd8e73336e31bbf44f8ca998785a..898e533c8eecde908558403b0ec209355bf66fb1 100755 (executable)
@@ -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
+