Skip to content

Commit 1ee6274

Browse files
committed
[Build] Fix archiving of log files in Jenkins pipeline
and other minor clean-ups of the Jenkinsfile. Remove explicit declaration of properties that are already defined in the eclipse-platform-parent/pom.xml
1 parent 3ffdfe3 commit 1ee6274

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Jenkinsfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,25 @@ 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 \
23-
-Dproject.build.sourceEncoding=UTF-8 \
2423
-Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss.SSS \
25-
-DtrimStackTrace=false
24+
-DtrimStackTrace=false
2625
"""
2726
}
2827
}
2928
post {
3029
always {
31-
archiveArtifacts artifacts: '*.log,*/target/work/data/.metadata/*.log,*/tests/target/work/data/.metadata/*.log,apiAnalyzer-workspace/.metadata/*.log', allowEmptyArchive: true
30+
archiveArtifacts artifacts: '*.log,**/target/**/*.log', allowEmptyArchive: true
3231
junit '**/target/surefire-reports/TEST-*.xml'
3332
discoverGitReferenceBuild referenceJob: 'eclipse.platform.ui/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]]
33+
recordIssues(publishAllIssues:false, ignoreQualityGate:true,
34+
tool: eclipse(name: 'Compiler and API Tools', pattern: '**/target/compilelogs/*.xml'),
35+
qualityGates: [[threshold: 1, type: 'DELTA', unstable: true]])
3536
recordIssues publishAllIssues:false, tools: [mavenConsole(), javaDoc()]
3637
}
3738
}

0 commit comments

Comments
 (0)