Set Sonar branch name to 'develop' in CI pipeline
Added the Sonar branch name parameter to ensure proper tracking of the 'develop' branch during analysis. This change enhances consistency and accuracy in SonarQube reporting for this branch.
This commit is contained in:
@@ -54,6 +54,7 @@ sonarcloud_scan:
|
|||||||
-Dsonar.projectKey=${SONAR_PROJECT_KEY} \
|
-Dsonar.projectKey=${SONAR_PROJECT_KEY} \
|
||||||
-Dsonar.organization=${SONAR_ORGANIZATION} \
|
-Dsonar.organization=${SONAR_ORGANIZATION} \
|
||||||
-Dsonar.token=${SONAR_TOKEN} \
|
-Dsonar.token=${SONAR_TOKEN} \
|
||||||
|
-Dsonar.branch.name=develop \
|
||||||
-Dsonar.test.exclusions=src/test/java/**/* \
|
-Dsonar.test.exclusions=src/test/java/**/* \
|
||||||
-Dsonar.exclusions=docs/** \
|
-Dsonar.exclusions=docs/** \
|
||||||
-Dsonar.java.binaries=target/classes
|
-Dsonar.java.binaries=target/classes
|
||||||
|
|||||||
Reference in New Issue
Block a user