Author: ozizka(a)redhat.com
Date: 2010-03-29 13:16:20 -0400 (Mon, 29 Mar 2010)
New Revision: 899
Modified:
branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/testdata/hudson_shell_script.sh
Log:
* hudson script: Don't create DIST WAR when already exists.
Modified: branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/testdata/hudson_shell_script.sh
===================================================================
--- branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/testdata/hudson_shell_script.sh 2010-03-29
17:02:09 UTC (rev 898)
+++ branches/EmbJopr-1.4.0-SN-EAP5/jsfunit/testdata/hudson_shell_script.sh 2010-03-29
17:16:20 UTC (rev 899)
@@ -81,10 +81,14 @@
if [ -n "$PROVIDE_WAR" ] ; then
- echo "Zipping the AS console war from
'$JBOSS_HOME/server/all/admin-console.war' to
$WORKSPACE/admin-console-DIST.war."
- cd $JBOSS_HOME/server/all/admin-console.war
- zip $WORKSPACE/admin-console-DIST.war *
- PROVIDED_WAR=$WORKSPACE/admin-console-DIST.war
+ PROVIDED_WAR=$WORKSPACE/admin-console-DIST.war
+ if [ -f "$PROVIDED_WAR" ] ; then
+ echo "Already exists: $PROVIDED_WAR";
+ else
+ echo "Zipping the AS console war from
'$JBOSS_HOME/server/all/admin-console.war' to $PROVIDED_WAR."
+ cd $JBOSS_HOME/server/all/admin-console.war
+ zip $PROVIDED_WAR *
+ fi
fi
if [ -n "$PROVIDED_WAR" ] ; then
Show replies by date