Author: ozizka(a)redhat.com
Date: 2009-05-05 19:09:25 -0400 (Tue, 05 May 2009)
New Revision: 381
Added:
trunk/jsfunit/testdata/hudson_shell_script.sh
Log:
Added hudson shell script
Added: trunk/jsfunit/testdata/hudson_shell_script.sh
===================================================================
--- trunk/jsfunit/testdata/hudson_shell_script.sh (rev 0)
+++ trunk/jsfunit/testdata/hudson_shell_script.sh 2009-05-05 23:09:25 UTC (rev 381)
@@ -0,0 +1,33 @@
+echo `pwd`
+rm -rf embjopr/target
+rm -rf embjopr/jsfunit/target
+
+### Build JBoss AS, checked out / updated by Hudson
+cd jbossas-5.x/build
+./build.sh clean
+./build.sh -Dbuild.unsecured=true
+cd ../..
+
+### Set JBoss AS home dir
+# We don't want to stick with specific version, so get the home dynamically.
+# Get only the last dir. Hopefully versions will be named alphabetically.
+export JBOSS_HOME=`pwd`/`ls -d -1 jbossas-5.x/build/output/* | tail -n 1`
+echo "JBOSS_HOME: $JBOSS_HOME"
+# Remove bundled AS console
+# Name of war changed on 04/24 - smcgowan
+rm -rf $JBOSS_HOME/server/default/deploy/admin-console.war
+
+### List currently used port - why is RMI port in collision?
+/usr/sbin/lsof -i
+### List JVMs
+jps -l
+
+cd embjopr
+mvn install -Dmaven.test.skip=true --fail-never --update-snapshots
+cd jsfunit
+rm -rf target
+echo "Launching tests; binding JBoss AS to MYTESTIP_1 == $MYTESTIP_1"
+mvn -Pjboss5x install --fail-never --update-snapshots -DJBOSS_HOME=$JBOSS_HOME
-Dcargo.jboss.bind.address=$MYTESTIP_1
+sleep 5
+
+