[jbpm-commits] JBoss JBPM SVN: r3782 - in jbpm4/trunk/hudson: jboss/bin and 1 other directory.
do-not-reply at jboss.org
do-not-reply at jboss.org
Thu Feb 5 04:03:10 EST 2009
Author: heiko.braun at jboss.com
Date: 2009-02-05 04:03:10 -0500 (Thu, 05 Feb 2009)
New Revision: 3782
Modified:
jbpm4/trunk/hudson/hudson-home/command.sh
jbpm4/trunk/hudson/jboss/bin/http-spider.sh
Log:
Remove stdout output from spider.sh
Modified: jbpm4/trunk/hudson/hudson-home/command.sh
===================================================================
--- jbpm4/trunk/hudson/hudson-home/command.sh 2009-02-05 04:26:50 UTC (rev 3781)
+++ jbpm4/trunk/hudson/hudson-home/command.sh 2009-02-05 09:03:10 UTC (rev 3782)
@@ -87,6 +87,8 @@
# Was it successfully started?
$JBPMDIR/hudson/jboss/bin/http-spider.sh $JBOSS_BINDADDR:8080 $WORKSPACE
if [ -e $WORKSPACE/spider.failed ]; then
+ echo "JBoss could not be started:"
+ cat $WORKSPACE/spider.failed
tail -n 100 $JBOSS_HOME/server/$JBOSS_SERVER/log/server.log
$JBPMDIR/hudson/jboss/bin/jboss.sh $JBOSS_HOME stop $JBOSS_BINDADDR
exit 1
Modified: jbpm4/trunk/hudson/jboss/bin/http-spider.sh
===================================================================
--- jbpm4/trunk/hudson/jboss/bin/http-spider.sh 2009-02-05 04:26:50 UTC (rev 3781)
+++ jbpm4/trunk/hudson/jboss/bin/http-spider.sh 2009-02-05 09:03:10 UTC (rev 3782)
@@ -30,22 +30,18 @@
echo "Check HTTP connection on $1"
-if [ -b $WGET ]; then
- COUNTER=0
- while [ $COUNTER -lt $NUM_RETRIES ]; do
- if wget --spider --timeout=$TIMEOUT --tries=1 $1 &> /dev/null; then
- touch $2/spider.success
- echo "Try $COUNTER: '$1' is available" > ./spider.success
- exit 0
- else
- echo "Try $COUNTER: '$1' does not respond, wait another $SLEEP_TIME seconds"
- fi
- sleep $SLEEP_TIME
- let COUNTER=COUNTER+1
- done
-else
- echo "$WGET can not be found, exiting"
-fi
+COUNTER=0
+while [ $COUNTER -lt $NUM_RETRIES ]; do
+ if wget --spider --timeout=$TIMEOUT --tries=1 $1 &> /dev/null; then
+ touch $2/spider.success
+ echo "Try $COUNTER: '$1' is available" > ./spider.success
+ exit 0
+ else
+ echo "Try $COUNTER: '$1' does not respond, wait another $SLEEP_TIME seconds"
+ fi
+ sleep $SLEEP_TIME
+ let COUNTER=COUNTER+1
+done
touch $2/spider.failed
echo "Unable to connect to $1, exiting..." > spider.failed
More information about the jbpm-commits
mailing list