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:
Vendored
+1
-1
@@ -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'"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user