summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortgrogers <[email protected]>2017-07-19 16:01:30 -0400
committertgrogers <[email protected]>2017-07-19 16:01:30 -0400
commit2fc555094a7ba90540de7d02543a66909d84d126 (patch)
tree81ab481a72dcd71aa08a8d89d7af274cb8555ad4
parent9100087555584013c735d6cddc0a8069567d564b (diff)
Trying a different auto-email
-rw-r--r--Jenkinsfile18
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!",
+
+ 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}"
+ }
}
}
}