Tomishinets Vladimir %!s(int64=4) %!d(string=hai) anos
pai
achega
fc73493e5e
Modificáronse 2 ficheiros con 18 adicións e 0 borrados
  1. 9 0
      devK8s.Jenkinsfile
  2. 9 0
      prodK8s.Jenkinsfile

+ 9 - 0
devK8s.Jenkinsfile

@@ -127,4 +127,13 @@ pipeline {
       }
       }
     }
     }
   }
   }
+  post {
+    failure {
+      mail charset: 'UTF-8',
+           subject: "Jenkins build ERROR",
+           mimeType: 'text/html',
+           to: "${mailto}",
+           body: "<b>ATTENTION!!!</b> <b><br> Jenkins job failed.\n\n <b><br>Project Name:</b> ${env.JOB_NAME} <b><br>\nBuild Number:</b> ${env.BUILD_NUMBER} <b><br>\nURL Build:</b> ${RUN_DISPLAY_URL}"
+    }
+  }
 }
 }

+ 9 - 0
prodK8s.Jenkinsfile

@@ -93,4 +93,13 @@ pipeline {
       }
       }
     }
     }
   }
   }
+  post {
+    failure {
+      mail charset: 'UTF-8',
+           subject: "Jenkins build ERROR",
+           mimeType: 'text/html',
+           to: "${mailto}",
+           body: "<b>ATTENTION!!!</b> <b><br> Jenkins job failed.\n\n <b><br>Project Name:</b> ${env.JOB_NAME} <b><br>\nBuild Number:</b> ${env.BUILD_NUMBER} <b><br>\nURL Build:</b> ${RUN_DISPLAY_URL}"
+    }
+  }
 }
 }