From 455db6f9e35f92d177574eb6c87ecec0a6853008 Mon Sep 17 00:00:00 2001 From: Emmanuel Cazenave Date: Wed, 14 Mar 2018 18:36:08 +0100 Subject: [PATCH] jenkinsfile: debug --- Jenkinsfile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ef674dc..11272dd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,6 +7,8 @@ pipeline { echo "Hey" echo "Ho" echo "Hi" +echo "${env.BRANCH_NAME}" +aaaa """ } } @@ -18,10 +20,15 @@ echo "Hi" if (currentBuild.result == null) { currentBuild.result = 'SUCCESS' } - step([$class: 'Mailer', - notifyEveryUnstableBuild: true, - recipients: emailextrecipients([[$class: 'CulpritsRecipientProvider'], - [$class: 'RequesterRecipientProvider']])]) + if (env.BRANCH_NAME == 'master') { + step([$class: 'Mailer', notifyEveryUnstableBuild: true, + recipients: "manukaz@gmail.com", sendToIndividuals: true]) + } else { + step([$class: 'Mailer', + notifyEveryUnstableBuild: true, + recipients: emailextrecipients([[$class: 'CulpritsRecipientProvider'], + [$class: 'RequesterRecipientProvider']])]) + } } } }