From 38b3626014186ef5b0f50797bf4fc91c7314fc7a Mon Sep 17 00:00:00 2001 From: Joe Green Date: Wed, 11 Oct 2017 15:21:21 +0100 Subject: [PATCH] Try email only on master branch (#47) --- services/web/Jenkinsfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/web/Jenkinsfile b/services/web/Jenkinsfile index 50ced29d60..2da3a825f7 100644 --- a/services/web/Jenkinsfile +++ b/services/web/Jenkinsfile @@ -160,6 +160,10 @@ pipeline { post { failure { + when { + branch 'master' + } + mail(from: "${EMAIL_ALERT_FROM}", to: "${EMAIL_ALERT_TO}", subject: "Jenkins build failed: ${JOB_NAME}:${BUILD_NUMBER}",