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 a594287 Move issue recording to more sensible locations
a594287 is described below
commit a5942875f4538db83705d606d527f59673a04b91
Author: Matt Sicker <[email protected]>
AuthorDate: Sat Apr 4 23:03:07 2020 -0500
Move issue recording to more sensible locations
If we record issues of a failed build, we'll only get a subset of the
actual list of issues which causes bad history in the stats.
---
Jenkinsfile | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 740bf9b..55968d3 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -39,9 +39,11 @@ pipeline {
}
steps {
sh 'mvn -B -fae -t toolchains-jenkins-ubuntu.xml
-Djenkins -V clean install deploy'
- archiveArtifacts artifacts: '**/*.jar', fingerprint:
true
}
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/**')
@@ -74,9 +76,8 @@ pipeline {
}
}
post {
- always {
- recordIssues enabledForFailure: true,
- sourceCodeEncoding: 'UTF-8',
+ success {
+ recordIssues sourceCodeEncoding: 'UTF-8',
referenceJobName: 'log4j/master',
tools: [mavenConsole(), errorProne(), java()]
}