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'"
}
}
}