Przeglądaj źródła

only alert on master

Joe Green 9 lat temu
rodzic
commit
4fedea455b
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      services/notifications/Jenkinsfile

+ 4 - 0
services/notifications/Jenkinsfile

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