only alert on master

This commit is contained in:
Joe Green 2017-10-12 16:56:13 +01:00 committed by GitHub
parent c1b5e1d04c
commit ce2238c5d8

View file

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