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 @@
[EMAIL PROTECTED]:$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 \
- [EMAIL PROTECTED]:${maven_snapshot_directory}/commons-$component/jars
- scp target/commons-$component-$time_stamp.jar.md5 \
- [EMAIL PROTECTED]:${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 \
+ [EMAIL PROTECTED]:${maven_snapshot_directory}/commons-$component/jars
+ scp target/commons-$component-$time_stamp.jar.md5 \
+ [EMAIL PROTECTED]:${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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]