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 <noreply@anthropic.com>
This commit is contained in:
2026-05-06 16:06:50 +02:00
parent fa4f327a3f
commit 2af6d8d9bb
2 changed files with 4 additions and 1 deletions
Vendored
+1 -1
View File
@@ -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'"
}
}
}
+3
View File
@@ -31,6 +31,9 @@
false (default) when running as part of the full multi-module build. -->
<pitest.aggregate.skip>false</pitest.aggregate.skip>
<!-- SonarQube: Pfad zum JaCoCo-Aggregate-Report, den das Coverage-Modul erzeugt. -->
<sonar.coverage.jacoco.xmlReportPaths>**/jacoco-aggregate/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
<!-- Library versions -->
<javafx.version>21.0.2</javafx.version>
<log4j.version>2.23.1</log4j.version>