From f2b8a712647ef468046fd191c08dd3c581e790f2 Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Thu, 1 May 2025 19:36:39 +0200 Subject: [PATCH] [Build] Migrate to new tycho-apitools log and list javadoc/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 javadoc and maven issues, but don't add a quality-gate for them. --- Jenkinsfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 754321b226b..7e3bd17d862 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -49,14 +49,15 @@ pipeline { // The following lines use the newest build on master that did not fail a reference // 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. // To not fail the build also "unstable: true" is used to only mark the build unstable instead of failing when qualityGates are missed - // Also do not record mavenConsole() as failing tests are logged with ERROR duplicating the failure into the "Maven" plugin // To accept unstable builds (test errors or new warnings introduced by third party changes) as reference using "ignoreQualityGate:true" // To only show warnings related to the PR on a PR using "publishAllIssues:false" - // The eclipse compiler name is changed because the logfile not only contains ECJ but also API warnings. - // "pattern:" is used to collect warnings in dedicated files avoiding output of junit tests treated as warnings - junit '**/target/surefire-reports/*.xml' discoverGitReferenceBuild referenceJob: 'eclipse.jdt.core-github/master' - recordIssues publishAllIssues:false, ignoreQualityGate:true, tool: eclipse(name: 'Compiler and API Tools', pattern: '**/target/compilelogs/*.xml'), qualityGates: [[threshold: 1, type: 'DELTA', unstable: true]] + junit allowEmptyResults: true, testResults: '**/target/surefire-reports/*.xml' + recordIssues publishAllIssues: false, ignoreQualityGate: true, enabledForFailure: true, tools: [ + eclipse(name: 'Compiler', pattern: '**/target/compilelogs/*.xml'), + issues(name: 'API Tools', id: 'apitools', pattern: '**/target/apianalysis/*.xml'), + ], qualityGates: [[threshold: 1, type: 'DELTA', unstable: true]] + recordIssues tools: [javaDoc(), mavenConsole()] } } }