瀏覽代碼

add email

Tomishinets Vladimir 4 年之前
父節點
當前提交
9b36019580
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      prodK8s.Jenkinsfile

+ 9 - 0
prodK8s.Jenkinsfile

@@ -94,4 +94,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}"
+    }
+  }
 }