harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From var...@apache.org
Subject svn commit: r562015 - in /harmony/enhanced/buildtest/branches/2.0/scripts: parameters.xml publisher.xml
Date Thu, 02 Aug 2007 04:55:28 GMT
Author: varlax
Date: Wed Aug  1 21:55:26 2007
New Revision: 562015

URL: http://svn.apache.org/viewvc?view=rev&rev=562015
Log:
mail notification enhancements: added support for BCC list, improved subject formatting

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

Modified: harmony/enhanced/buildtest/branches/2.0/scripts/parameters.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/scripts/parameters.xml?view=diff&rev=562015&r1=562014&r2=562015
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/scripts/parameters.xml (original)
+++ harmony/enhanced/buildtest/branches/2.0/scripts/parameters.xml Wed Aug  1 21:55:26 2007
@@ -46,11 +46,16 @@
             description="Do always notify Run Status or only when status is changed"
             value="true"/>
         <to description="E-Mail address to send notifications to"/>
+        <bcc description="list of recipients to receive blind copies of notifications"
+             value=""/>
         <suppress.exelogs description="Define this property to suppress the execution
logs publishing."/>
         <from description="E-Mail address to send notifications from"/>
         <subject.prefix 
             description="Subject prefix of E-Mail Notifications"
             value="[build-test alert]"/>
+        <subject.suffix
+            description="Subject suffix of E-Mail Notifications"
+            value=""/>
     </usemail>
 
     <external>

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?view=diff&rev=562015&r1=562014&r2=562015
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/scripts/publisher.xml (original)
+++ harmony/enhanced/buildtest/branches/2.0/scripts/publisher.xml Wed Aug  1 21:55:26 2007
@@ -41,8 +41,8 @@
     </condition>
 
     <condition property="mail.execution.status"
-               value="BUILD PASSED"
-               else="BUILD FAILED">
+               value="PASSED"
+               else="FAILED">
         <istrue value="${thisbuildsuccessful}"/>
     </condition>
 
@@ -65,7 +65,7 @@
     <!-- compose subject line -->
     <property name="mail.subject.suffix" value=""/>
     <property name="mail.subject.line"
-              value="${mail.subject.prefix} ${mail.execution.status} ${os.name} ${mail.os.arch}:
${suite.name}${mail.subject.suffix}"/>
+              value="${mail.subject.prefix} ${mail.execution.status} ${os.name} ${mail.os.arch}:
${suite.name} ${mail.subject.suffix}"/>
 
     <!-- implement publisher interface -->
     <target name="publish" if="do.mail">
@@ -73,6 +73,7 @@
         <log message="    Sending mail notification:"/>
         <log message="        smtp: '${mail}'"/>
         <log message="        to: '${mail.to}'"/>
+        <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}"/>
@@ -102,6 +103,7 @@
             <mail mailhost="${mail}"
                   tolist="${mail.to}"
                   from="${mail.from}"
+                  bcclist="${mail.bcc}"
                   subject="${mail.subject.line}"
                   files="${mail.attachs},${mail.execution.log}">
                 <message>${mail.summary.content}${mail.message.content}</message>
@@ -130,6 +132,7 @@
         <sequential>
             <mail mailhost="${mail}"
                   tolist="${mail.to}"
+                  bcclist="${mail.bcc}"
                   from="${mail.from}"
                   subject="${mail.subject.line}">
                 <message>



Mime
View raw message