Merge "Send Build Notifications to Jenkins Admins"
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Mon, 10 Jul 2017 17:27:21 +0000 (17:27 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Mon, 10 Jul 2017 17:27:21 +0000 (17:27 +0000)
jjb/global/releng-defaults.yml
jjb/global/releng-macros.yml

index 2838886..75e00f9 100644 (file)
 
     properties:
         - logrotate-default
+
+    publishers:
+      # Any project that has a publisher will not have this macro
+      # included due to the nature of JJB defaults. Projects will have
+      # to explicitly add this macro to their list of publishers in
+      # order for emails to be sent.
+      - email-jenkins-admins-on-failure
index e4dfa8d..92199d6 100644 (file)
                 unhealthy: 40
                 failing: 30
 
+# The majority of the email-ext plugin options are set to the default
+# for this macro so they can be managed through Jenkins' global
+# settings.
+- publisher:
+    name: email-jenkins-admins-on-failure
+    publishers:
+      - email-ext:
+          content-type: text
+          attach-build-log: true
+          compress-log: true
+          always: false
+          failure: true
+          send-to:
+            - recipients