From 9fb5a7d6bd0701969b333f59c6de8aba81de0d60 Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Mon, 14 Oct 2024 23:06:22 +0200 Subject: [PATCH] [Build] Fix archiving of log files in Jenkins pipeline and other minor clean-ups of the Jenkinsfile. --- Jenkinsfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index aced1286eb4..57a80e11068 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 \ @@ -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()] } }