commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r420728 - /jakarta/commons/proper/commons-build/trunk/commons_nightly.sh
Date Tue, 11 Jul 2006 05:08:21 GMT
Author: psteitz
Date: Mon Jul 10 22:08:21 2006
New Revision: 420728

URL: http://svn.apache.org/viewvc?rev=420728&view=rev
Log:
Don't attempt jar deployment unless build has succeeded.

Modified:
    jakarta/commons/proper/commons-build/trunk/commons_nightly.sh

Modified: jakarta/commons/proper/commons-build/trunk/commons_nightly.sh
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/commons-build/trunk/commons_nightly.sh?rev=420728&r1=420727&r2=420728&view=diff
==============================================================================
--- jakarta/commons/proper/commons-build/trunk/commons_nightly.sh (original)
+++ jakarta/commons/proper/commons-build/trunk/commons_nightly.sh Mon Jul 10 22:08:21 2006
@@ -73,14 +73,17 @@
     $deploy_user@$deploy_host:$deploy_location/commons-$component
 
     # Deploy dated jar manually to maven 1 snapshot repo
-    ssh $maven_snapshot_host mkdir -p ${maven_snapshot_directory}/commons-$component/jars
-    md5sum -b target/commons-$component-$time_stamp.jar > \
-    target/commons-$component-$time_stamp.jar.md5
-    scp target/commons-$component-$time_stamp.jar \
-    $deploy_user@$maven_snapshot_host:${maven_snapshot_directory}/commons-$component/jars
-    scp target/commons-$component-$time_stamp.jar.md5 \
-    $deploy_user@$maven_snapshot_host:${maven_snapshot_directory}/commons-$component/jars
-    ssh $maven_snapshot_host chmod -R g+w ${maven_snapshot_directory}/commons-$component
+    if [ -e "target/commons-$component-$time_stamp.jar" ] # build succeeded
+    then 
+      ssh $maven_snapshot_host mkdir -p ${maven_snapshot_directory}/commons-$component/jars
+      md5sum -b target/commons-$component-$time_stamp.jar > \
+      target/commons-$component-$time_stamp.jar.md5
+      scp target/commons-$component-$time_stamp.jar \
+      $deploy_user@$maven_snapshot_host:${maven_snapshot_directory}/commons-$component/jars
+      scp target/commons-$component-$time_stamp.jar.md5 \
+      $deploy_user@$maven_snapshot_host:${maven_snapshot_directory}/commons-$component/jars
+      ssh $maven_snapshot_host chmod -R g+w ${maven_snapshot_directory}/commons-$component
+    fi
 
     # Cleanup
     rm -rf target                                      



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message