Skip to content

Commit

Permalink
[Build] Fix archiving of log files in Jenkins pipeline
Browse files Browse the repository at this point in the history
and other minor clean-ups of the Jenkinsfile.
  • Loading branch information
HannesWell committed Oct 15, 2024
1 parent 392c8ae commit 9fb5a7d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ pipeline {
stages {
stage('Build') {
steps {
wrap([$class: 'Xvnc', useXauthority: true]) {
xvnc(useXauthority: true) {
sh """
mvn clean verify --batch-mode --fail-at-end -Dmaven.repo.local=$WORKSPACE/.m2/repository \
-Pbree-libs -Papi-check -Pjavadoc \
-Dmaven.test.failure.ignore=true \
-Dmaven.test.failure.ignore=true \
-Dcompare-version-with-baselines.skip=false \
-Dmaven.compiler.failOnWarning=false \
-Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss.SSS \
Expand All @@ -28,10 +28,12 @@ pipeline {
}
post {
always {
archiveArtifacts artifacts: '.*log,*/target/work/data/.metadata/.*log,*/tests/target/work/data/.metadata/.*log,apiAnalyzer-workspace/.metadata/.*log', allowEmptyArchive: true
archiveArtifacts artifacts: '.*log,**/target/**/.*log', allowEmptyArchive: true
junit '**/target/surefire-reports/TEST-*.xml'
discoverGitReferenceBuild referenceJob: 'eclipse.platform/master'
recordIssues publishAllIssues:false, ignoreQualityGate:true, tool: eclipse(name: 'Compiler and API Tools', pattern: '**/target/compilelogs/*.xml'), qualityGates: [[threshold: 1, type: 'DELTA', unstable: true]]
recordIssues(publishAllIssues:false, ignoreQualityGate:true,
tool: eclipse(name: 'Compiler and API Tools', pattern: '**/target/compilelogs/*.xml'),
qualityGates: [[threshold: 1, type: 'DELTA', unstable: true]])
recordIssues publishAllIssues:false, tools: [mavenConsole(), javaDoc()]
}
}
Expand Down

0 comments on commit 9fb5a7d

Please sign in to comment.