Explorar el Código

alert only on master

Joe Green hace 9 años
padre
commit
80eb7a8eda
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      services/docstore/Jenkinsfile

+ 4 - 0
services/docstore/Jenkinsfile

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