alert only on master

This commit is contained in:
Joe Green 2017-10-12 17:07:29 +01:00 committed by GitHub
parent 8f71dcf113
commit 80eb7a8eda

View file

@ -66,6 +66,10 @@ pipeline {
post { post {
failure { failure {
when {
branch 'master'
}
mail(from: "${EMAIL_ALERT_FROM}", mail(from: "${EMAIL_ALERT_FROM}",
to: "${EMAIL_ALERT_TO}", to: "${EMAIL_ALERT_TO}",
subject: "Jenkins build failed: ${JOB_NAME}:${BUILD_NUMBER}", subject: "Jenkins build failed: ${JOB_NAME}:${BUILD_NUMBER}",