Author: ozizka(a)redhat.com
Date: 2009-10-19 14:55:46 -0400 (Mon, 19 Oct 2009)
New Revision: 793
Modified:
trunk/jsfunit/testdata/hudson_shell_script.sh
Log:
* Hudson shell script updated - the jobs can be configured to use the build output.
Modified: trunk/jsfunit/testdata/hudson_shell_script.sh
===================================================================
--- trunk/jsfunit/testdata/hudson_shell_script.sh 2009-10-19 16:01:46 UTC (rev 792)
+++ trunk/jsfunit/testdata/hudson_shell_script.sh 2009-10-19 18:55:46 UTC (rev 793)
@@ -13,21 +13,37 @@
mvn -version
-### Get and unzip EAP 5 binaries
-#if [ -n $EAP_URL ] ; then
-if [[ "$EAP_ZIP_PATH" = http:* ]] ; then
- if [ ! -e eap5.zip ] ; then
- wget --no-clobber -O eap5.zip $EAP_ZIP_PATH # -m
+echo "EAP_ZIP_PATH: $EAP_ZIP_PATH";
+
+if [ -n "$JBOSS_HOME" ] then
+ if [ -n "$EAP_ZIP_PATH" ] ; then
+ ### ??? Not set
+ echo "EAP_ZIP_PATH is not set. Must be either path to EAP dist or a EAP code
root dir. Terminating."
+ exit -1;
+ else if[ -d "$EAP_ZIP_PATH/build/output" ] ; then
+ ### Built by Hudson
+ #export JBOSS_HOME=$WORKSPACE/eap5/build/output/`ls -1 $WORKSPACE/eap5/build/output`
+ export JBOSS_HOME=$EAP_ZIP_PATH/build/output/`ls -1 $EAP_ZIP_PATH/build/output`
+ else
+ ### Get and unzip EAP 5 binaries
+ #if [ -n $EAP_URL ] ; then
+ if [[ "$EAP_ZIP_PATH" = http:* ]] ; then
+ if [ ! -e eap5.zip ] ; then
+ wget --no-clobber -O eap5.zip $EAP_ZIP_PATH # -m
+ fi
+ EAP_ZIP_PATH=eap5.zip
+ fi
+ rm -rf jboss-eap-5.0
+ unzip $EAP_ZIP_PATH
+
+ ### Set JBoss AS home dir
+ export JBOSS_HOME=$WORKSPACE/jboss-eap-5.0/jboss-as
fi
- EAP_ZIP_PATH=eap5.zip
fi
-rm -rf jboss-eap-5.0
-unzip $EAP_ZIP_PATH
### Set JBoss AS home dir
#export JBOSS_HOME=`pwd`/jboss-eap-5.0/jboss-as
-export JBOSS_HOME=$WORKSPACE/jboss-eap-5.0/jboss-as
echo "JBOSS_HOME: $JBOSS_HOME"
# Remove bundled AS console
# Name of war changed on 04/24 - smcgowan