From 4fedea455be6868dc01889f91401b27a3de276c3 Mon Sep 17 00:00:00 2001 From: Joe Green Date: Thu, 12 Oct 2017 16:58:58 +0100 Subject: [PATCH] only alert on master --- services/notifications/Jenkinsfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/notifications/Jenkinsfile b/services/notifications/Jenkinsfile index 9ff32b1fd4..77b99dde75 100644 --- a/services/notifications/Jenkinsfile +++ b/services/notifications/Jenkinsfile @@ -62,6 +62,10 @@ pipeline { post { failure { + when { + branch 'master' + } + mail(from: "${EMAIL_ALERT_FROM}", to: "${EMAIL_ALERT_TO}", subject: "Jenkins build failed: ${JOB_NAME}:${BUILD_NUMBER}",