mail notification
authorErik Brakkee <erik@brakkee.org>
Sun, 25 Sep 2022 18:40:23 +0000 (20:40 +0200)
committerErik Brakkee <erik@brakkee.org>
Sun, 25 Sep 2022 18:40:23 +0000 (20:40 +0200)
Jenkinsfile

index 4f5ec5fe6bfeeb065072d519a7b092f677143bc7..23c3df3d74552e63d3b88622dd83e0ad0d5ff510 100644 (file)
@@ -49,5 +49,10 @@ pipeline {
       junit '**/surefire-reports/*.xml'
       cobertura coberturaReportFile: '**/target/site/cobertura/coverage.xml'
     }
+    changed {
+      mail to: "jenkins@wamblee.org",
+      subject: "jenkins build:${currentBuild.currentResult}: ${env.JOB_NAME}",
+      body: "${currentBuild.currentResult}: Job ${env.JOB_NAME}\nMore Info can be found here: ${env.BUILD_URL}"
+    }
   }
 }