Author: thomas.diesler(a)jboss.com
Date: 2007-05-31 23:33:16 -0400 (Thu, 31 May 2007)
New Revision: 3349
Modified:
trunk/build/hudson/jboss/bin/http-spider.sh
Log:
Add try counter log
Modified: trunk/build/hudson/jboss/bin/http-spider.sh
===================================================================
--- trunk/build/hudson/jboss/bin/http-spider.sh 2007-06-01 03:25:25 UTC (rev 3348)
+++ trunk/build/hudson/jboss/bin/http-spider.sh 2007-06-01 03:33:16 UTC (rev 3349)
@@ -1,5 +1,6 @@
#!/bin/sh
+#############################################################
#
# Simple helper that checks if an HTTP host is available.
# (Relies on wget)
@@ -9,6 +10,9 @@
#
# @author Heiko.Braun(a)jboss.com
#
+# $Id: $
+#
+#############################################################
TIMEOUT=2 # wget timeout in sec
SLEEP_TIME=10 # the actual sleep time in between test
@@ -25,7 +29,7 @@
echo "'$1' is available"
exit 0
else
- echo "'$1' does not respond, wait another $SLEEP_TIME seconds"
+ echo "Try $COUNTER: '$1' does not respond, wait another $SLEEP_TIME
seconds"
fi
sleep $SLEEP_TIME
let COUNTER=COUNTER+1
Show replies by date