You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ma...@apache.org on 2020/04/04 18:49:27 UTC

[logging-log4j2] 02/02: Add more build-related notifications

This is an automated email from the ASF dual-hosted git repository.

mattsicker pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit 0e8fcc967e64fa6c99504df5a468c3c5928f6475
Author: Matt Sicker <bo...@gmail.com>
AuthorDate: Sat Apr 4 13:48:51 2020 -0500

    Add more build-related notifications
---
 Jenkinsfile | 43 +++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 41 insertions(+), 2 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index d9ed4f1..5446550 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -62,10 +62,49 @@ pipeline {
     }
     post {
         regression {
-            slackSend channel: 'logging', message: "Regression detected in ${env.BUILD_URL}", color: 'danger'
+            slackSend channel: 'logging',
+                color: 'warning',
+                message: ":disappear: Regression detected in ${env.BUILD_URL}"
+            mail to: 'notifications@logging.apache.org',
+                replyTo: 'dev@logging.apache.org',
+                subject: "Regression in Jenkins build of ${env.JOB_NAME} (${env.BUILD_NUMBER})",
+                body: """
+There is a new regression detected in ${env.JOB_NAME}.
+
+Build: ${env.BUILD_URL}
+Logs: ${env.BUILD_URL}console
+Tests: ${env.BUILD_URL}testReport/
+Changes: ${env.BUILD_URL}changes
+"""
         }
         fixed {
-            slackSend channel: 'logging', message: "Build back to normal: ${env.BUILD_URL}", color: 'good'
+            slackSend channel: 'logging',
+                color: 'good',
+                message: ":beer_parrot: Build back to normal: ${env.BUILD_URL}"
+            mail to: 'notifications@logging.apache.org',
+                replyTo: 'dev@logging.apache.org',
+                subject: "Jenkins build of ${env.JOB_NAME} (${env.BUILD_NUMBER}) back to normal",
+                body: "See ${env.BUILD_URL} for more details."
+        }
+        failure {
+            slackSend channel: 'logging',
+                color: 'danger',
+                message: ":doh: Build failed: ${env.BUILD_URL}"
+            mail to: 'notifications@logging.apache.org',
+                replyTo: 'dev@logging.apache.org',
+                subject: "Build failure in Jenkins build of ${env.JOB_NAME} (${env.BUILD_NUMBER})",
+                body: """
+There is a build failure in ${env.JOB_NAME}.
+
+Build: ${env.BUILD_URL}
+Logs: ${env.BUILD_URL}console
+Changes: ${env.BUILD_URL}changes
+"""
+        }
+        unstable {
+            slackSend channel: 'logging',
+                color: 'warning',
+                message: ":sadpanda: Build still unstable: ${env.BUILD_URL}"
         }
     }
 }