only alert on master
This commit is contained in:
1 parent
48b2548533
commit
eb35cab72d
1 file changed
+4
Vendored
+4
@@ -83,6 +83,10 @@ pipeline {
|
||||
|
||||
post {
|
||||
failure {
|
||||
when {
|
||||
branch 'master'
|
||||
}
|
||||
|
||||
mail(from: "${EMAIL_ALERT_FROM}",
|
||||
to: "${EMAIL_ALERT_TO}",
|
||||
subject: "Jenkins build failed: ${JOB_NAME}:${BUILD_NUMBER}",
|
||||
|
||||
Reference in new issue
Block a user