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
The following commit(s) were added to refs/heads/master by this push:
new 39d019b Move recording to post steps
39d019b is described below
commit 39d019bbefec883a33d891944e751ff8d29b70b6
Author: Matt Sicker <[email protected]>
AuthorDate: Sat Apr 4 21:55:59 2020 -0500
Move recording to post steps
---
Jenkinsfile | 32 ++++++++++++++++++++++++--------
1 file changed, 24 insertions(+), 8 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 842c828..70e5cd5 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -39,11 +39,14 @@ pipeline {
}
steps {
sh 'mvn -B -fae -t toolchains-jenkins-ubuntu.xml
-Djenkins -V clean install deploy'
- 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', includePattern: '**/*.java', excludePattern: '*/target/**')]
+ }
+ post {
+ always {
+ recordIssues enabledForFailure: true,
sourceCodeEncoding: 'UTF-8', referenceJobName: 'log4j/master',
+ tool: taskScanner(highTags: 'FIXME',
normalTags: 'TODO', includePattern: '**/*.java', excludePattern: '*/target/**')
+ junit '**/*-reports/*.xml'
+ }
}
}
stage('Windows') {
@@ -60,17 +63,28 @@ pipeline {
if exist %userprofile%\\.embedmongo\\ rd /s /q
%userprofile%\\.embedmongo
mvn -B -fae -t toolchains-jenkins-win.xml
-Dfile.encoding=UTF-8 -V clean install
'''
- junit '**/*-reports/*.xml'
+ }
+ post {
+ always {
+ junit '**/*-reports/*.xml'
+ }
}
}
}
}
}
post {
+ always {
+ recordIssues enabledForFailure: true,
+ sourceCodeEncoding: 'UTF-8',
+ referenceJobName: 'log4j/master',
+ tools: [mavenConsole(), errorProne(), java()]
+ }
fixed {
slackSend channel: 'logging',
color: 'good',
- message: ":beer_parrot: Build back to normal: ${env.BUILD_URL}"
+ iconEmoji: 'beer_parrot',
+ message: "Build back to normal:
<${env.BUILD_URL}|${env.BUILD_DISPLAY_NAME}>."
mail to: '[email protected]',
subject: "Jenkins build of ${env.JOB_NAME}
(${env.BUILD_NUMBER}) back to normal",
body: "See ${env.BUILD_URL} for more details."
@@ -78,7 +92,8 @@ pipeline {
failure {
slackSend channel: 'logging',
color: 'danger',
- message: ":doh: Build failed: ${env.BUILD_URL}"
+ iconEmoji: 'doh',
+ message: "Build failed:
<${env.BUILD_URL}|${env.BUILD_DISPLAY_NAME}>."
mail to: '[email protected]',
subject: "Build failure in Jenkins build of ${env.JOB_NAME}
(${env.BUILD_NUMBER})",
body: """
@@ -95,7 +110,8 @@ Mr. Jenkins
unstable {
slackSend channel: 'logging',
color: 'warning',
- message: ":sadpanda: Build still unstable: ${env.BUILD_URL}"
+ iconEmoji: 'sadpanda',
+ message: "Build unstable: ${env.BUILD_URL}"
}
}
}