Skip to content

Commit dc55c0e

Browse files
sratzMichael5601
authored andcommitted
Jenkinsfile: Use Tycho 4.0.13 way to display api tools warnings
Also make sure the issues are published even in case of a failed build, as otherwise they are not visualized.
1 parent d75ce9c commit dc55c0e

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Jenkinsfile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,12 +344,18 @@ pipeline {
344344
}
345345
post {
346346
always {
347-
junit 'eclipse.platform.swt/tests/*.test*/target/surefire-reports/*.xml'
348-
archiveArtifacts artifacts: '**/*.log,*/binaries/*/target/*.jar', excludes: '**/*-sources.jar'
347+
junit allowEmptyResults: true, testResults: 'eclipse.platform.swt/tests/*.test*/target/surefire-reports/*.xml'
348+
archiveArtifacts allowEmptyArchive: true, artifacts: '**/*.log,*/binaries/*/target/*.jar', excludes: '**/*-sources.jar'
349349
discoverGitReferenceBuild referenceJob: 'eclipse.platform.swt/master'
350350
// To accept unstable builds (test errors or new warnings introduced by third party changes) as reference using "ignoreQualityGate:true"
351-
recordIssues publishAllIssues: true, ignoreQualityGate:true, tools: [eclipse(name: 'Compiler and API Tools', pattern: '**/target/compilelogs/*.xml'), javaDoc()], qualityGates: [[threshold: 1, type: 'DELTA', unstable: true]]
352-
recordIssues publishAllIssues: true, ignoreQualityGate:true, tool: mavenConsole(), qualityGates: [[threshold: 1, type: 'DELTA_ERROR', unstable: true]]
351+
recordIssues enabledForFailure: true, publishAllIssues: true, ignoreQualityGate:true,
352+
tools: [
353+
eclipse(name: 'Compiler', pattern: '**/target/compilelogs/*.xml'),
354+
issues(name: 'API Tools', id: 'apitools', pattern: '**/target/apianalysis/*.xml'),
355+
javaDoc()
356+
],
357+
qualityGates: [[threshold: 1, type: 'DELTA', unstable: true]]
358+
recordIssues enabledForFailure: true, publishAllIssues: true, ignoreQualityGate:true, tool: mavenConsole(), qualityGates: [[threshold: 1, type: 'DELTA_ERROR', unstable: true]]
353359
}
354360
}
355361
}

0 commit comments

Comments
 (0)