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:25 UTC

[logging-log4j2] branch master updated (287352e -> 0e8fcc9)

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

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


    from 287352e  Add more info on test failure
     new 979dc0d  Combine issue recorders into steps
     new 0e8fcc9  Add more build-related notifications

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 Jenkinsfile | 74 +++++++++++++++++++++++++++++++++++++++----------------------
 1 file changed, 47 insertions(+), 27 deletions(-)


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

Posted by ma...@apache.org.
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}"
         }
     }
 }


[logging-log4j2] 01/02: Combine issue recorders into steps

Posted by ma...@apache.org.
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 979dc0dba21569a4faef5f03fa297b92c1421080
Author: Matt Sicker <bo...@gmail.com>
AuthorDate: Sat Apr 4 13:17:07 2020 -0500

    Combine issue recorders into steps
---
 Jenkinsfile | 31 ++++++-------------------------
 1 file changed, 6 insertions(+), 25 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 96e6d9b..d9ed4f1 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -36,26 +36,11 @@ pipeline {
                     }
                     steps {
                         sh 'mvn -B -fn -t toolchains-jenkins-ubuntu.xml -Djenkins -V clean install'
-                    }
-                    post {
-                        always {
-                            archiveArtifacts artifacts: '**/*.jar', fingerprint: true
-                            junit '**/*-reports/*.xml'
-                            recordIssues enabledForFailure: true,
-                                tool: mavenConsole(),
-                                referenceJobName: 'log4j/master'
-                            recordIssues enabledForFailure: true,
-                                tool: errorProne(),
-                                referenceJobName: 'log4j/master'
-                            recordIssues enabledForFailure: true,
-                                tool: java(),
-                                sourceCodeEncoding: 'UTF-8',
-                                referenceJobName: 'log4j/master'
-                            recordIssues enabledForFailure: true,
-                                tool: taskScanner(includePattern: '**/*.java', excludePattern: 'target/**', highTags: 'FIXME', normalTags: 'TODO'),
-                                sourceCodeEncoding: 'UTF-8',
-                                referenceJobName: 'log4j/master'
-                        }
+                        junit '**/*-reports/*.xml'
+                        archiveArtifacts artifacts: '**/*.jar', fingerprint: true
+                        recordIssues sourceCodeEncoding: 'UTF-8', referenceJobName: 'log4j/master',
+                            tools: [mavenConsole(), errorProne(), java(), // junitParser() // TODO: compare with junit step
+                                taskScanner(highTags: 'FIXME', normalTags: 'TODO', excludePattern: '*/target/**')]
                     }
                 }
                 stage('Windows') {
@@ -69,11 +54,7 @@ pipeline {
                         if exist %userprofile%\\.embedmongo\\ rd /s /q %userprofile%\\.embedmongo
                         mvn -B -fn -t toolchains-jenkins-win.xml -Dfile.encoding=UTF-8 -V clean install
                         '''
-                    }
-                    post {
-                        always {
-                            junit '**/*-reports/*.xml'
-                        }
+                        junit '**/*-reports/*.xml'
                     }
                 }
             }