Skip to content

Commit 3b04398

Browse files
HannesWellakurtakov
authored andcommitted
[Build] Migrate to new tycho-apitools log and list maven issues
Also make sure the issues are published even in case of a failed build, as otherwise they are not visualized and improve order of post-actions. Additionally record maven issues, but don't add a quality-gate for them.
1 parent c916092 commit 3b04398

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
@@ -37,15 +37,16 @@ pipeline {
3737
// The following lines use the newest build on master that did not fail a reference
3838
// To not fail master build on failed test maven needs to be started with "-Dmaven.test.failure.ignore=true" it will then only marked unstable.
3939
// To not fail the build also "unstable: true" is used to only mark the build unstable instead of failing when qualityGates are missed
40-
// Also do not record mavenConsole() as failing tests are logged with ERROR duplicating the failure into the "Maven" plugin
4140
// To accept unstable builds (test errors or new warnings introduced by third party changes) as reference using "ignoreQualityGate:true"
4241
// To only show warnings related to the PR on a PR using "publishAllIssues:false"
43-
// The eclipse compiler name is changed because the logfile not only contains ECJ but also API warnings.
44-
// "pattern:" is used to collect warnings in dedicated files avoiding output of junit tests treated as warnings
45-
junit '**/target/surefire-reports/*.xml'
4642
discoverGitReferenceBuild referenceJob: 'eclipse.jdt.debug-github/master'
47-
recordIssues publishAllIssues:false, ignoreQualityGate:true, tool: eclipse(name: 'Compiler and API Tools', pattern: '**/target/compilelogs/*.xml'), qualityGates: [[threshold: 1, type: 'DELTA', unstable: true]]
48-
recordIssues publishAllIssues:false, ignoreQualityGate:true, tool: javaDoc(), qualityGates: [[threshold: 1, type: 'DELTA', unstable: true]]
43+
junit allowEmptyResults: true, testResults: '**/target/surefire-reports/*.xml'
44+
recordIssues publishAllIssues: false, ignoreQualityGate: true, enabledForFailure: true, tools: [
45+
eclipse(name: 'Compiler', pattern: '**/target/compilelogs/*.xml'),
46+
issues(name: 'API Tools', id: 'apitools', pattern: '**/target/apianalysis/*.xml'),
47+
javaDoc(),
48+
], qualityGates: [[threshold: 1, type: 'DELTA', unstable: true]]
49+
recordIssues tools: [mavenConsole()]
4950
}
5051
}
5152
}

0 commit comments

Comments
 (0)