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] [EMAIL PROTECTED] failed.\""
-for i in "[EMAIL PROTECTED]"; do
-  echo "${log_url}/${time_stamp}/${i}.log" >> /home/$deploy_user/build_report
-done
-scp /home/$deploy_user/build_report [EMAIL PROTECTED]:/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 [ [EMAIL PROTECTED] ] 
+then
+  rm /home/$deploy_user/build_report
+  echo "Failed build logs:" > /home/$deploy_user/build_report
+  subject="\"[nightly build] [EMAIL PROTECTED] failed.\""
+  for i in "[EMAIL PROTECTED]"; do
+    echo "${log_url}/${time_stamp}/${i}.log" >> /home/$deploy_user/build_report
+  done
+  scp /home/$deploy_user/build_report [EMAIL PROTECTED]:/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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to