commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r430201 - /jakarta/commons/proper/commons-build/trunk/commons_nightly.sh
Date Thu, 10 Aug 2006 01:00:51 GMT
Author: psteitz
Date: Wed Aug  9 18:00:51 2006
New Revision: 430201

URL: http://svn.apache.org/viewvc?rev=430201&view=rev
Log:
No failures -> no CI-spam.

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=430201&r1=430200&r2=430201&view=diff
==============================================================================
--- jakarta/commons/proper/commons-build/trunk/commons_nightly.sh (original)
+++ jakarta/commons/proper/commons-build/trunk/commons_nightly.sh Wed Aug  9 18:00:51 2006
@@ -223,17 +223,20 @@
 # Make files group writable
 ssh $deploy_host chmod -R g+w $deploy_location
 
-# Send failure notification email
-rm /home/$deploy_user/build_report
-echo "Failed build logs:" > /home/$deploy_user/build_report
-subject="\"[nightly build] ${failed_builds[@]} failed.\""
-for i in "${failed_builds[@]}"; do
-  echo "${log_url}/${time_stamp}/${i}.log" >> /home/$deploy_user/build_report
-done
-scp /home/$deploy_user/build_report $deploy_user@$deploy_host:/home/$deploy_user
-ssh $deploy_host mail -s $subject $notification_email < /home/$deploy_user/build_report
-ssh $deploy_host rm /home/$deploy_user/build_report 
-rm /home/$deploy_user/build_report
+# Send failure notification email if there are build failures
+if [ !${failed_builds[@]} ] 
+then
+  rm /home/$deploy_user/build_report
+  echo "Failed build logs:" > /home/$deploy_user/build_report
+  subject="\"[nightly build] ${failed_builds[@]} failed.\""
+  for i in "${failed_builds[@]}"; do
+    echo "${log_url}/${time_stamp}/${i}.log" >> /home/$deploy_user/build_report
+  done
+  scp /home/$deploy_user/build_report $deploy_user@$deploy_host:/home/$deploy_user
+  ssh $deploy_host mail -s $subject $notification_email < /home/$deploy_user/build_report
+  ssh $deploy_host rm /home/$deploy_user/build_report 
+  rm /home/$deploy_user/build_report
+fi
 
 exit 0
 



---------------------------------------------------------------------
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