Skip to content

Commit 9fb5a7d

Browse files
committed
[Build] Fix archiving of log files in Jenkins pipeline
and other minor clean-ups of the Jenkinsfile.
1 parent 392c8ae commit 9fb5a7d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Jenkinsfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ pipeline {
1414
stages {
1515
stage('Build') {
1616
steps {
17-
wrap([$class: 'Xvnc', useXauthority: true]) {
17+
xvnc(useXauthority: true) {
1818
sh """
1919
mvn clean verify --batch-mode --fail-at-end -Dmaven.repo.local=$WORKSPACE/.m2/repository \
2020
-Pbree-libs -Papi-check -Pjavadoc \
21-
-Dmaven.test.failure.ignore=true \
21+
-Dmaven.test.failure.ignore=true \
2222
-Dcompare-version-with-baselines.skip=false \
2323
-Dmaven.compiler.failOnWarning=false \
2424
-Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss.SSS \
@@ -28,10 +28,12 @@ pipeline {
2828
}
2929
post {
3030
always {
31-
archiveArtifacts artifacts: '.*log,*/target/work/data/.metadata/.*log,*/tests/target/work/data/.metadata/.*log,apiAnalyzer-workspace/.metadata/.*log', allowEmptyArchive: true
31+
archiveArtifacts artifacts: '.*log,**/target/**/.*log', allowEmptyArchive: true
3232
junit '**/target/surefire-reports/TEST-*.xml'
3333
discoverGitReferenceBuild referenceJob: 'eclipse.platform/master'
34-
recordIssues publishAllIssues:false, ignoreQualityGate:true, tool: eclipse(name: 'Compiler and API Tools', pattern: '**/target/compilelogs/*.xml'), qualityGates: [[threshold: 1, type: 'DELTA', unstable: true]]
34+
recordIssues(publishAllIssues:false, ignoreQualityGate:true,
35+
tool: eclipse(name: 'Compiler and API Tools', pattern: '**/target/compilelogs/*.xml'),
36+
qualityGates: [[threshold: 1, type: 'DELTA', unstable: true]])
3537
recordIssues publishAllIssues:false, tools: [mavenConsole(), javaDoc()]
3638
}
3739
}

0 commit comments

Comments
 (0)