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