diff options
Diffstat (limited to 'Jenkinsfile')
| -rw-r--r-- | Jenkinsfile | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index 8c05427..a510f40 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,13 +17,17 @@ pipeline { ./util/job_launching/run_simulations.py -N regress && \ ./util/job_launching/monitor_func_test.py -v -N regress' - emailex - body: "$JOB_NAME - $BRANCH_NAME - Build # currentBuild.number - currentBuild.result: Check console output at $BUILD_URL to view the results.", - recipientProviders: [[$class: "CulpritsRecipientProvider"], - [$class: "RequesterRecipientProvider"]], - replyTo: "[email protected]", - subject: "[AALP Jenkins]: $JOB_NAME - Build # currentBuild.number - currentBuild.result!", - to: '[email protected]' + + def to = emailextrecipients([ + [$class: 'CulpritsRecipientProvider'], + [$class: 'DevelopersRecipientProvider'], + [$class: 'RequesterRecipientProvider'] + ]) + + if(to != null && !to.isEmpty()) { + mail to: to, subject: "[AALP Jenkins] Build ${currentBuild.result}!", + body: "See ${env.BUILD_URL}" + } } } } |
