mail notification
[upnpmonitor] / Jenkinsfile
index 3492a5f15e2e746a4646c5f1b17fcaad651a1a05..78b3a6c657c8ccaa7ad5bc8743ad4c70a5d33a02 100644 (file)
@@ -14,7 +14,7 @@ pipeline {
     stage('Main') {
       steps {  
         sh """
-          No longer building the code since cling-core is no longer 
+          #No longer building the code since cling-core is no longer 
           #maintained
           #mvn install
           (
@@ -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}"
+    }
+  }
 }