Skip to content

Commit ce4a915

Browse files
committed
Jenkinsfile: Not fail build on failed test
copy from eclipse-platform/eclipse.platform.ui#1739
1 parent 31e1ef4 commit ce4a915

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Jenkinsfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ pipeline {
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 \
2122
-Dcompare-version-with-baselines.skip=false \
2223
-Dmaven.compiler.failOnWarning=false \
2324
-Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss.SSS \
@@ -30,8 +31,8 @@ pipeline {
3031
archiveArtifacts artifacts: '.*log,*/target/work/data/.metadata/.*log,*/tests/target/work/data/.metadata/.*log,apiAnalyzer-workspace/.metadata/.*log', allowEmptyArchive: true
3132
junit '**/target/surefire-reports/TEST-*.xml'
3233
discoverGitReferenceBuild referenceJob: 'eclipse.platform/master'
33-
recordIssues tools: [eclipse(name: 'Compiler and API Tools', pattern: '**/target/compilelogs/*.xml'), javaDoc()], qualityGates: [[threshold: 1, type: 'DELTA', unstable: true]]
34-
recordIssues tool: mavenConsole(), qualityGates: [[threshold: 1, type: 'DELTA_ERROR', unstable: true]]
34+
recordIssues publishAllIssues:false, ignoreQualityGate:true, tool: eclipse(name: 'Compiler and API Tools', pattern: '**/target/compilelogs/*.xml'), qualityGates: [[threshold: 1, type: 'DELTA', unstable: true]]
35+
recordIssues publishAllIssues:false, tools: [mavenConsole(), javaDoc()]
3536
}
3637
}
3738
}

0 commit comments

Comments
 (0)