Add failure emails for master builds

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j-scala/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/logging-log4j-scala/commit/421c39c2
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j-scala/tree/421c39c2
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j-scala/diff/421c39c2

Branch: refs/heads/master
Commit: 421c39c267abed825217dd286f584f6d1a571df6
Parents: e37c29a
Author: Matt Sicker <boa...@gmail.com>
Authored: Fri Mar 30 19:47:50 2018 -0500
Committer: Matt Sicker <boa...@gmail.com>
Committed: Fri Mar 30 19:47:50 2018 -0500

----------------------------------------------------------------------
 Jenkinsfile | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j-scala/blob/421c39c2/Jenkinsfile
----------------------------------------------------------------------
diff --git a/Jenkinsfile b/Jenkinsfile
index c51e27c..1af227b 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -57,6 +57,11 @@ pipeline {
                     }
                 }
             }
+            post {
+                failure {
+                    emailext body: "See <${env.BUILD_URL}>", replyTo: 
'd...@logging.apache.org', subject: "[Scala] Jenkins build failure 
(#${env.BUILD_NUMBER})", 'notificati...@logging.apache.org'
+                }
+            }
         }
     }
 }

Reply via email to