Change email-ext macros to allow modifying the recipients and subject prefix 04/12304/6
authorThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 29 Oct 2014 04:03:48 +0000 (00:03 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 29 Oct 2014 15:23:47 +0000 (11:23 -0400)
Change-Id: I3a5a1a921dccd200e0117c75a4457dd827330f00
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/releng-jobs.yaml
jjb/releng-macros.yaml

index cb87eeddaf06110c8f5e35792a9b689d6f1a2683..afbc6212dda5c8f844c2c991a64fb50dd2d1e3f8 100644 (file)
             source /opt/virtualenv/jenkins-job-builder/bin/activate
             jenkins-jobs test jjb/
 
+    publishers:
+        - email-notification:
+            email-prefix: '[releng]'
+
 - job-template:
     name: 'builder-merge'
 
@@ -95,3 +99,7 @@
         - shell: |
             source /opt/virtualenv/jenkins-job-builder/bin/activate
             jenkins-jobs update jjb/
+
+    publishers:
+        - email-notification:
+            email-prefix: '[releng]'
index f41ad0ca16595d685319135909bcee0139178614..673a74b4e4a197af307515bac9afb06908da5f27 100644 (file)
     name: email-notification
     publishers:
         - email-ext:
-            recipients: '$DEFAULT_RECIPIENTS'
-            reply-to: '$DEFAULT_REPLYTO'
+            recipients: 'jenkins@lists.opendaylight.org'
+            reply-to:
             content-type: default
-            subject: '$DEFAULT_SUBJECT'
-            body: '$DEFAULT_CONTENT'
+            subject: '{email-prefix} $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!'
+            body: |
+                $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:
+
+                Check console output at $BUILD_URL to view the results.
             unstable: true
             fixed: true
             send-to: