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

index 2521a41ceee65661295377fc1ef718fad49bf44d..78b3a6c657c8ccaa7ad5bc8743ad4c70a5d33a02 100644 (file)
@@ -25,4 +25,11 @@ pipeline {
       }
     }
   }
+  post {
+    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}"
+    }
+  }
 }