From a464ce4e273e9a65c66053e8fd847c1bdcbab4a7 Mon Sep 17 00:00:00 2001 From: Sebastian Ratz Date: Mon, 24 Mar 2025 11:22:59 +0100 Subject: [PATCH] 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. --- Jenkinsfile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index adabe0d0ad7..c40f3460e63 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -344,12 +344,18 @@ pipeline { } post { always { - junit 'eclipse.platform.swt/tests/*.test*/target/surefire-reports/*.xml' - archiveArtifacts artifacts: '**/*.log,*/binaries/*/target/*.jar', excludes: '**/*-sources.jar' + junit allowEmptyResults: true, testResults: 'eclipse.platform.swt/tests/*.test*/target/surefire-reports/*.xml' + archiveArtifacts allowEmptyArchive: true, artifacts: '**/*.log,*/binaries/*/target/*.jar', excludes: '**/*-sources.jar' discoverGitReferenceBuild referenceJob: 'eclipse.platform.swt/master' // To accept unstable builds (test errors or new warnings introduced by third party changes) as reference using "ignoreQualityGate:true" - recordIssues publishAllIssues: true, ignoreQualityGate:true, tools: [eclipse(name: 'Compiler and API Tools', pattern: '**/target/compilelogs/*.xml'), javaDoc()], qualityGates: [[threshold: 1, type: 'DELTA', unstable: true]] - recordIssues publishAllIssues: true, ignoreQualityGate:true, tool: mavenConsole(), qualityGates: [[threshold: 1, type: 'DELTA_ERROR', unstable: true]] + recordIssues enabledForFailure: true, publishAllIssues: true, ignoreQualityGate:true, + tools: [ + eclipse(name: 'Compiler', pattern: '**/target/compilelogs/*.xml'), + issues(name: 'API Tools', id: 'apitools', pattern: '**/target/apianalysis/*.xml'), + javaDoc() + ], + qualityGates: [[threshold: 1, type: 'DELTA', unstable: true]] + recordIssues enabledForFailure: true, publishAllIssues: true, ignoreQualityGate:true, tool: mavenConsole(), qualityGates: [[threshold: 1, type: 'DELTA_ERROR', unstable: true]] } } }