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/05 17:53:46 UTC

[logging-log4j2] branch master updated (fe8d9f4 -> d9ba059)

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 fe8d9f4  Disable deploying other samples
     new 1882c3c  Match build badge style with others
     new d9ba059  Rearrange pipeline and improve emails

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 | 117 +++++++++++++++++++++++++++++++-----------------------------
 README.md   |   2 +-
 2 files changed, 62 insertions(+), 57 deletions(-)


[logging-log4j2] 02/02: Rearrange pipeline and improve emails

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 d9ba0597c9ce8caeecfca2359e893260bd30c72b
Author: Matt Sicker <bo...@gmail.com>
AuthorDate: Sun Apr 5 12:53:08 2020 -0500

    Rearrange pipeline and improve emails
---
 Jenkinsfile | 117 +++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 61 insertions(+), 56 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 55968d3..1865de9 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -24,79 +24,84 @@ pipeline {
         parallelsAlwaysFailFast()
         durabilityHint 'PERFORMANCE_OPTIMIZED'
     }
-    agent any
+    agent none
     stages {
-        stage('Build') {
-            parallel {
-                stage('Ubuntu') {
-                    agent { label 'ubuntu' }
-                    tools {
-                        jdk 'JDK 1.8 (latest)'
-                        maven 'Maven 3 (latest)'
-                    }
-                    environment {
-                        LANG = 'en_US.UTF-8'
-                    }
-                    steps {
-                        sh 'mvn -B -fae -t toolchains-jenkins-ubuntu.xml -Djenkins -V clean install deploy'
-                    }
-                    post {
-                        success {
-                            archiveArtifacts artifacts: '**/*.jar', fingerprint: true
-                        }
-                        always {
-                            recordIssues enabledForFailure: true, sourceCodeEncoding: 'UTF-8', referenceJobName: 'log4j/master',
-                                tool: taskScanner(highTags: 'FIXME', normalTags: 'TODO', includePattern: '**/*.java', excludePattern: '*/target/**')
-                            junit '**/*-reports/*.xml'
-                        }
-                    }
+        parallel {
+            stage('Ubuntu') {
+                agent { label 'ubuntu' }
+                tools {
+                    jdk 'JDK 1.8 (latest)'
+                    maven 'Maven 3 (latest)'
                 }
-                stage('Windows') {
-                    agent { label 'Windows' }
-                    tools {
-                        jdk 'JDK 1.8 (latest)'
-                        maven 'Maven 3 (latest)'
-                    }
-                    environment {
-                        LANG = 'en_US.UTF-8'
+                environment {
+                    LANG = 'en_US.UTF-8'
+                }
+                steps {
+                    sh 'mvn -B -fae -t toolchains-jenkins-ubuntu.xml -Djenkins -V clean install deploy'
+                }
+                post {
+                    success {
+                        archiveArtifacts artifacts: '**/*.jar', fingerprint: true
                     }
-                    steps {
-                        bat '''
-                        if exist %userprofile%\\.embedmongo\\ rd /s /q %userprofile%\\.embedmongo
-                        mvn -B -fae -t toolchains-jenkins-win.xml -Dfile.encoding=UTF-8 -V clean install
-                        '''
+                    always {
+                        junit '**/*-reports/*.xml'
+                        recordIssues enabledForFailure: true,
+                            sourceCodeEncoding: 'UTF-8',
+                            referenceJobName: 'log4j/master',
+                            tools: [mavenConsole(), errorProne(), java(),
+                                taskScanner(highTags: 'FIXME', normalTags: 'TODO', includePattern: '**/*.java', excludePattern: '*/target/**')]
                     }
-                    post {
-                        always {
-                            junit '**/*-reports/*.xml'
-                        }
+                }
+            }
+            stage('Windows') {
+                agent { label 'Windows' }
+                tools {
+                    jdk 'JDK 1.8 (latest)'
+                    maven 'Maven 3 (latest)'
+                }
+                environment {
+                    LANG = 'en_US.UTF-8'
+                }
+                steps {
+                    bat '''
+                    if exist %userprofile%\\.embedmongo\\ rd /s /q %userprofile%\\.embedmongo
+                    mvn -B -fae -t toolchains-jenkins-win.xml -Dfile.encoding=UTF-8 -V clean install
+                    '''
+                }
+                post {
+                    always {
+                        junit '**/*-reports/*.xml'
                     }
                 }
             }
         }
     }
     post {
-        success {
-            recordIssues sourceCodeEncoding: 'UTF-8',
-                referenceJobName: 'log4j/master',
-                tools: [mavenConsole(), errorProne(), java()]
-        }
         fixed {
             slackSend channel: 'logging',
                 color: 'good',
-                iconEmoji: 'male_mage',
-                message: "Build back to normal: <${env.BUILD_URL}|${env.BUILD_DISPLAY_NAME}>."
+                message: ":excellent: <${env.JOB_URL|${env.JOB_NAME}> was fixed in <${env.BUILD_URL}|build #${env.BUILD_NUMBER}>."
             mail to: 'notifications@logging.apache.org',
-                subject: "Jenkins build of ${env.JOB_NAME} (${env.BUILD_NUMBER}) back to normal",
-                body: "See ${env.BUILD_URL} for more details."
+                from: 'Mr. Jenkins <je...@builds.apache.org>',
+                subject: "Jenkins job ${env.JOB_NAME}#${env.BUILD_NUMBER} back to normal",
+                body: """
+The build for ${env.JOB_NAME} completed successfully and is back to normal.
+
+Build: ${env.BUILD_URL}
+Logs: ${env.BUILD_URL}console
+Changes: ${env.BUILD_URL}changes
+--
+Mr. Jenkins
+Director of Continuous Integration
+"""
         }
         failure {
             slackSend channel: 'logging',
                 color: 'danger',
-                iconEmoji: 'face_palm',
-                message: "Build failed: <${env.BUILD_URL}|${env.BUILD_DISPLAY_NAME}>."
+                message: ":doh: <${env.JOB_URL}|${env.JOB_NAME}> failed in <${env.BUILD_URL}|build #${env.BUILD_NUMBER}>."
             mail to: 'notifications@logging.apache.org',
-                subject: "Build failure in Jenkins build of ${env.JOB_NAME} (${env.BUILD_NUMBER})",
+                from: 'Mr. Jenkins <je...@builds.apache.org>',
+                subject: "Jenkins job ${env.JOB_NAME}#${env.BUILD_NUMBER} failed",
                 body: """
 There is a build failure in ${env.JOB_NAME}.
 
@@ -106,13 +111,13 @@ Changes: ${env.BUILD_URL}changes
 
 --
 Mr. Jenkins
+Director of Continuous Integration
 """
         }
         unstable {
             slackSend channel: 'logging',
                 color: 'warning',
-                iconEmoji: 'juggling',
-                message: "Build unstable: ${env.BUILD_URL}"
+                message: ":disappear: <${env.JOB_URL}|${env.JOB_NAME}> is unstable in <${env.BUILD_URL}|build #${env.BUILD_NUMBER}>."
         }
     }
 }


[logging-log4j2] 01/02: Match build badge style with others

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 1882c3c1fd9b4efe36997320ade4c91dbe1a785c
Author: Matt Sicker <bo...@gmail.com>
AuthorDate: Sun Apr 5 12:12:35 2020 -0500

    Match build badge style with others
---
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 98d54a3..92cde0b 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
 Apache Log4j 2 is an upgrade to Log4j that provides significant improvements over its predecessor, Log4j 1.x,
 and provides many of the improvements available in Logback while fixing some inherent problems in Logback's architecture.
 
-[![Jenkins Status](https://builds.apache.org/buildStatus/icon?job=log4j%2Fmaster&subject=master&style=flat-square)](https://builds.apache.org/job/log4j/job/master/)
+[![Jenkins Status](https://builds.apache.org/buildStatus/icon?job=log4j%2Fmaster&subject=master&style=flat)](https://builds.apache.org/job/log4j/job/master/)
 [![Travis Status](https://travis-ci.org/apache/logging-log4j2.svg?branch=master)](https://travis-ci.org/apache/logging-log4j2)
 [![Maven Central](https://img.shields.io/maven-central/v/org.apache.logging.log4j/log4j-api.svg)](http://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-api)