summaryrefslogtreecommitdiffstats
path: root/jjb/global
diff options
context:
space:
mode:
authorTrevor Bramwell <tbramwell@linuxfoundation.org>2017-07-10 17:27:21 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-07-10 17:27:21 +0000
commit5f39453f82c740d9c1105e3ef6a216103e0ed7ac (patch)
tree5aa239d6e6541501acff76279680d1d409ef3bf6 /jjb/global
parentd7e3e4e0a3123366aa544bf67371c4c3ef8bcfdf (diff)
parentb25f9cacddd875162f25e63e12549410c17cdeb1 (diff)
Merge "Send Build Notifications to Jenkins Admins"
Diffstat (limited to 'jjb/global')
-rw-r--r--jjb/global/releng-defaults.yml7
-rw-r--r--jjb/global/releng-macros.yml14
2 files changed, 21 insertions, 0 deletions
diff --git a/jjb/global/releng-defaults.yml b/jjb/global/releng-defaults.yml
index 283888603..75e00f983 100644
--- a/jjb/global/releng-defaults.yml
+++ b/jjb/global/releng-defaults.yml
@@ -12,3 +12,10 @@
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
diff --git a/jjb/global/releng-macros.yml b/jjb/global/releng-macros.yml
index e4dfa8d80..92199d6e7 100644
--- a/jjb/global/releng-macros.yml
+++ b/jjb/global/releng-macros.yml
@@ -492,3 +492,17 @@
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