Try email only on master branch (#47)

This commit is contained in:
Joe Green
2017-10-11 15:21:21 +01:00
committed by GitHub
parent 4e0a159db4
commit 38b3626014

View File

@@ -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}",