Author: alex.guizar(a)jboss.com
Date: 2010-07-29 02:21:07 -0400 (Thu, 29 Jul 2010)
New Revision: 6539
Modified:
jbpm3/branches/jbpm-3.2-soa/hudson/hudson-home/command.sh
Log:
JBPM-2916 diagnose jbpm version determination problem
Modified: jbpm3/branches/jbpm-3.2-soa/hudson/hudson-home/command.sh
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/hudson/hudson-home/command.sh 2010-07-29 01:51:57 UTC (rev
6538)
+++ jbpm3/branches/jbpm-3.2-soa/hudson/hudson-home/command.sh 2010-07-29 06:21:07 UTC (rev
6539)
@@ -75,7 +75,8 @@
# Build distro
#
export JAVA_HOME=$JAVA_BT_HOME
-JBPM_VERSION=`mvn -Dexpression=project.version help:evaluate | grep '^3\.'`
+mvn -Dexpression=project.version help:evaluate > $WORKSPACE/project-version.txt
+JBPM_VERSION=`grep '^3\.' $WORKSPACE/project-version.txt`
mvn -Pdistro,soa -Djbpm.home=$WORKSPACE/jbpm-$JBPM_VERSION -Dcontainer=$CONTAINER \
-Djboss.home=$JBOSS_HOME -Djboss.server=$JBOSS_SERVER clean install
if [ $? -ne 0 ]; then
@@ -92,11 +93,11 @@
#
# Install proprietary JDBC drivers
#
-mvn -N -DoutputFile=$WORKSPACE/resolve.tmp dependency:resolve
+mvn -N -DoutputFile=$WORKSPACE/dependencies.txt dependency:resolve
# Install DB2 driver
if [ "$DATABASE" = "db2" ]; then
- DB2JCC_VERSION=`grep com.ibm:db2jcc:jar $WORKSPACE/resolve.tmp | awk -F : '{ print
$4 }'`
+ DB2JCC_VERSION=`grep com.ibm:db2jcc:jar $WORKSPACE/dependencies.txt | awk -F : '{
print $4 }'`
DB2JCC_JAR=~/.m2/repository/com/ibm/db2jcc/$DB2JCC_VERSION/db2jcc-$DB2JCC_VERSION.jar
if [ -f $DB2JCC_JAR ]; then
ln -s $DB2JCC_JAR $JBOSS_HOME/server/$JBOSS_SERVER/lib
@@ -113,7 +114,7 @@
# Install MSSQL driver
if [ "$DATABASE" = "mssql" ]; then
- MSJDBC_VERSION=`grep com.microsoft.sqlserver:msjdbc $WORKSPACE/resolve.tmp | awk -F :
'{ print $4 }'`
+ MSJDBC_VERSION=`grep com.microsoft.sqlserver:msjdbc $WORKSPACE/dependencies.txt | awk
-F : '{ print $4 }'`
MSJDBC_JAR=~/.m2/repository/com/microsoft/sqlserver/msjdbc/$MSJDBC_VERSION/msjdbc-$MSJDBC_VERSION.jar
if [ -f $MSJDBC_JAR ]; then
ln -s $MSJDBC_JAR $JBOSS_HOME/server/$JBOSS_SERVER/lib
@@ -124,7 +125,7 @@
# Install Oracle driver
if [ "$DATABASE" = "oracle" ]; then
- OJDBC_VERSION=`grep com.oracle:ojdbc14 $WORKSPACE/resolve.tmp | awk -F : '{ print
$4 }'`
+ OJDBC_VERSION=`grep com.oracle:ojdbc14 $WORKSPACE/dependencies.txt | awk -F : '{
print $4 }'`
OJDBC_JAR=~/.m2/repository/com/oracle/ojdbc14/$OJDBC_VERSION/ojdbc14-$OJDBC_VERSION.jar
if [ -f $OJDBC_JAR ]; then
ln -s $OJDBC_JAR $JBOSS_HOME/server/$JBOSS_SERVER/lib
@@ -135,7 +136,7 @@
# Install Sybase driver
if [ "$DATABASE" = "sybase" ]; then
- JCONNECT_VERSION=`grep com.sybase:jconnect $WORKSPACE/resolve.tmp | awk -F : '{
print $4 }'`
+ JCONNECT_VERSION=`grep com.sybase:jconnect $WORKSPACE/dependencies.txt | awk -F :
'{ print $4 }'`
JCONNECT_JAR=~/.m2/repository/com/sybase/jconnect/$JCONNECT_VERSION/jconnect-$JCONNECT_VERSION.jar
if [ -f $JCONNECT_JAR ]; then
ln -s $JCONNECT_JAR $JBOSS_HOME/server/$JBOSS_SERVER/lib
@@ -144,9 +145,6 @@
fi
fi
-# Remove resolution output file
-rm $WORKSPACE/resolve.tmp
-
#
# Start JBoss AS
#
Show replies by date