Update SonarQube project key and organization in GitLab CI; add dynamic project key to analysis command.
This commit is contained in:
+3
-3
@@ -13,8 +13,8 @@ variables:
|
|||||||
GITLAB_USERNAME: $GITLAB_USERNAME
|
GITLAB_USERNAME: $GITLAB_USERNAME
|
||||||
GITLAB_USEREMAIL: GITLAB_USEREMAIL
|
GITLAB_USEREMAIL: GITLAB_USEREMAIL
|
||||||
SONAR_HOST_URL: $SONAR_HOST_URL
|
SONAR_HOST_URL: $SONAR_HOST_URL
|
||||||
SONAR_PROJECT_KEY: "thischwa_CloudflareDNS-java"
|
SONAR_PROJECT_KEY: "th-schwarz_CloudflareDNS-java"
|
||||||
SONAR_ORGANIZATION: "thischwa"
|
SONAR_ORGANIZATION: "th-schwarz"
|
||||||
SONAR_TOKEN: $SONAR_TOKEN
|
SONAR_TOKEN: $SONAR_TOKEN
|
||||||
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar"
|
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar"
|
||||||
GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
|
GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
|
||||||
@@ -68,7 +68,7 @@ sonarcloud_scan:
|
|||||||
dependencies:
|
dependencies:
|
||||||
- build
|
- build
|
||||||
script:
|
script:
|
||||||
- mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
|
- mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=${SONAR_PROJECT_KEY}
|
||||||
only:
|
only:
|
||||||
- merge_requests
|
- merge_requests
|
||||||
- develop
|
- develop
|
||||||
|
|||||||
Reference in New Issue
Block a user