jenkins-job-builder/tests/publishers/fixtures/email-ext003.yaml
David Smith b61cd60024 email-ext trigger script
You can use Trigger Scripts in groovy to define before of after the
build if the email must be send or not. See
https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin#Email-extplugin-Triggers

Change-Id: Id55df2c4796472c9283269e9e57815b8cf5ed52a
2016-08-26 17:16:52 +01:00

35 lines
923 B
YAML

publishers:
- email-ext:
recipients: foo@example.com, bar@example.com
reply-to: foo@example.com
content-type: html
subject: Subject for Build ${BUILD_NUMBER}
body: The build has finished
attach-build-log: false
compress-log: false
attachments: "*/foo*.log"
always: true
unstable: true
first-failure: true
not-built: true
aborted: true
regression: true
failure: true
second-failure: true
improvement: true
still-failing: true
success: true
fixed: true
still-unstable: true
pre-build: true
trigger-script: "build.result.toString().equals('SUCCESS')"
matrix-trigger: only-configurations
presend-script: "cancel=true"
postsend-script: "cancel=true"
save-output: true
send-to:
- developers
- requester
- culprits
- recipients