Explorar o código

only alert on master

Joe Green %!s(int64=9) %!d(string=hai) anos
pai
achega
4fedea455b
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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}",