[jbpm-commits] JBoss JBPM SVN: r3891 - jbpm4/trunk/hudson/hudson-home/jobs/jBPM4-JDK1.5.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Feb 16 10:46:06 EST 2009


Author: heiko.braun at jboss.com
Date: 2009-02-16 10:46:06 -0500 (Mon, 16 Feb 2009)
New Revision: 3891

Modified:
   jbpm4/trunk/hudson/hudson-home/jobs/jBPM4-JDK1.5/config.xml
Log:
Fix/Update example hudson config

Modified: jbpm4/trunk/hudson/hudson-home/jobs/jBPM4-JDK1.5/config.xml
===================================================================
--- jbpm4/trunk/hudson/hudson-home/jobs/jBPM4-JDK1.5/config.xml	2009-02-16 15:28:13 UTC (rev 3890)
+++ jbpm4/trunk/hudson/hudson-home/jobs/jBPM4-JDK1.5/config.xml	2009-02-16 15:46:06 UTC (rev 3891)
@@ -42,24 +42,40 @@
   </axes>
   <builders>
     <hudson.tasks.Shell>
-      <command>
+<command>
 WORKSPACE=`pwd`
 JBPMDIR=$WORKSPACE/jbpm4
 
-export HUDSON_BASE=/home/hudson/workspace/jbpm-hudson-4.0.0-SNAPSHOT
-export JBPM_VERSION=4.0.0-SNAPSHOT
-export JBOSS_SERVER=default
-export JBOSS_BINDADDR=192.168.0.101
+export HUDSON_BASE=@hudson.base@
+export JBPM_VERSION=@version.id@
+export JBOSS_SERVER=@jboss.server.instance@
+export JBOSS_BINDADDR=@jboss.bind.address@
 
+#
 # copy the maven profile
+#
 cp $JBPMDIR/hudson/profiles.xml.local.qa $JBPMDIR/profiles.xml
 
 #
+# create the database tables
+#
+cd $JBPMDIR/modules/db
+mvn -Pcreate-tables -Ddatabase=$DATABASE install
+
+#
 # call command.sh
 #
-/bin/sh $JBPMDIR/hudson/hudson-home/command.sh        
+cd $WORKSPACE
+/bin/sh $JBPMDIR/hudson/hudson-home/command.sh
 
-      </command>
+#
+# drop the database tables (cleanup)
+#
+cd $JBPMDIR/modules/db
+mvn -Pdrop-tables -Ddatabase=$DATABASE install
+
+cd $WORKSPACE      
+</command>
     </hudson.tasks.Shell>
   </builders>
   <publishers>




More information about the jbpm-commits mailing list