project: releng/ciman
stream: latest
build-node: build-vm
+ failure-notification: "fake@example.org"
+ failure-notification-prefix: "[releng]"
Provides lf-infra recommended wrappers for use in every job-template targetting
Windows systems.
+
+
+global-jjb-email-notification
+-----------------------------
+
+Provides a publisher macro that ties into the lf-openstack-cron job
+to alert admins if this job fails.
publishers:
- lf-infra-publish
+ - global-jjb-email-notification:
+ email-recipients: "{failure-notification}"
+ email-prefix: "{failure-notification-prefix}"
- job-template:
name: "{project-name}-openstack-cron"
- "**/*.jenkins-trigger"
fail-build: false
+- publisher:
+ name: global-jjb-email-notification
+ publishers:
+ - email-ext:
+ recipients: "{email-recipients}"
+ reply-to: ""
+ content-type: default
+ subject: "{email-prefix} $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!"
+ body: |
+ $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:
+
+ Please refer to the logs server URL for console logs when possible
+ and use the Jenkins Build URL as a last resort.
+
+ Jenkins Build URL:
+ $BUILD_URL
+ unstable: true
+ fixed: true
+ send-to:
+ - recipients
+
#######
# SCM #
#######
--- /dev/null
+---
+prelude: >
+ Provides method to notify administrators if important jobs are failing.
+features:
+ - |
+ Allows customization of email address and email prefix.
+ failure-notification-prefix
+ failure-notification
+upgrade:
+ - |
+ Updating to this version of JJB will _require_ updating
+ jjb/defaults.yaml in the same patchset.
+ The following will need to be defined:
+ failure-notification: "foo@bar.org"
+ failure-notification-prefix: "[Some Prefix]"