From 96df59010db946696455bcc341a97198c1b0778f Mon Sep 17 00:00:00 2001 From: tgrogers Date: Wed, 19 Jul 2017 16:12:26 -0400 Subject: another example? --- Jenkinsfile | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1f6ed5f..8a63478 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,17 +17,7 @@ pipeline { ./util/job_launching/run_simulations.py -N regress && \ ./util/job_launching/monitor_func_test.py -v -N regress' - - step(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}" - }) + step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: emailextrecipients([[$class: 'CulpritsRecipientProvider'], [$class: 'RequesterRecipientProvider']])]) } } } -- cgit v1.3