Explorar o código

only alert on master

Joe Green %!s(int64=9) %!d(string=hai) anos
pai
achega
75836ecb0a
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      services/clsi/Jenkinsfile

+ 4 - 0
services/clsi/Jenkinsfile

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