From 2af6d8d9bb1bff4df1e54b74f157319ab7753578 Mon Sep 17 00:00:00 2001 From: Marcus van Elst Date: Wed, 6 May 2026 16:06:50 +0200 Subject: [PATCH] SonarQube: jacoco.xmlReportPaths in Root-POM auslagern sonar.coverage.jacoco.xmlReportPaths wird jetzt als Property im Root-POM gepflegt statt als -D-Parameter im mvn sonar:sonar-Befehl des Jenkinsfile. Co-Authored-By: Claude Sonnet 4.6 --- Jenkinsfile | 2 +- pom.xml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index fe04156..9c6db5c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -91,7 +91,7 @@ EOF steps { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { withSonarQubeEnv('SonarQube') { - sh "mvn sonar:sonar -Drevision=${env.EFFECTIVE_MAJOR}.${env.EFFECTIVE_MINOR}.${env.BUILD_NUMBER} -Dsonar.projectKey=pdf-umbenenner -Dsonar.projectName='PDF KI Renamer' -Dsonar.coverage.jacoco.xmlReportPaths=**/jacoco-aggregate/jacoco.xml" + sh "mvn sonar:sonar -Drevision=${env.EFFECTIVE_MAJOR}.${env.EFFECTIVE_MINOR}.${env.BUILD_NUMBER} -Dsonar.projectKey=pdf-umbenenner -Dsonar.projectName='PDF KI Renamer'" } } } diff --git a/pom.xml b/pom.xml index a4284b4..3f31c3c 100644 --- a/pom.xml +++ b/pom.xml @@ -31,6 +31,9 @@ false (default) when running as part of the full multi-module build. --> false + + **/jacoco-aggregate/jacoco.xml + 21.0.2 2.23.1