harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r588192 - /harmony/enhanced/buildtest/branches/2.0/scripts/publisher.xml
Date Thu, 25 Oct 2007 10:17:12 GMT
Author: smishura
Date: Thu Oct 25 03:17:10 2007
New Revision: 588192

URL: http://svn.apache.org/viewvc?rev=588192&view=rev
Log:
Add config option to the publisher:
If 'mail.if.failed' and 'mail.bcc' are set
then a notification is always sent to bcc list if a suite failed

Modified:
    harmony/enhanced/buildtest/branches/2.0/scripts/publisher.xml

Modified: harmony/enhanced/buildtest/branches/2.0/scripts/publisher.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/scripts/publisher.xml?rev=588192&r1=588191&r2=588192&view=diff
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/scripts/publisher.xml (original)
+++ harmony/enhanced/buildtest/branches/2.0/scripts/publisher.xml Thu Oct 25 03:17:10 2007
@@ -35,8 +35,15 @@
                 </not>
             </or>
         </condition>
-        <condition property="bcc" value="${mail.bcc}">
-            <isset property="to" />
+
+        <!-- if was configured always notify about FAILED status  -->
+        <!-- the notification is sent to mail.bcc list only       -->
+        <condition property="to" value="${mail.bcc}">
+            <and>
+                <isset property="mail.bcc" />
+                <isset property="mail.if.failed" />
+                <isfalse value="${thisbuildsuccessful}" />
+            </and>
         </condition>
     </target>
     
@@ -58,7 +65,7 @@
         <log message="    Sending mail notification:"/>
         <log message="        smtp: '${mail}'"/>
         <log message="        to: '${to}'"/>
-        <log message="        bcc: '${bcc}'"/>
+        <log message="        bcc: '${mail.bcc}'"/>
         <log message="        from: '${mail.from}'"/>
         <log message="    Files to attach: ${mail.attachs}"/>
         <log message="    Execution logs file: ${mail.execution.log}"/>
@@ -88,7 +95,7 @@
             <mail mailhost="${mail}"
                   tolist="${to}"
                   from="${mail.from}"
-                  bcclist="${bcc}"
+                  bcclist="${mail.bcc}"
                   subject="${mail.subject.line}"
                   files="${mail.attachs},${mail.execution.log}">
                 <message>${mail.summary.content}${line.separator}${mail.message.content}</message>
@@ -117,7 +124,7 @@
         <sequential>
             <mail mailhost="${mail}"
                   tolist="${to}"
-                  bcclist="${bcc}"
+                  bcclist="${mail.bcc}"
                   from="${mail.from}"
                   subject="${mail.subject.line}">
                 <message>



Mime
View raw message