From 4df6757ee4b4fe02c17670206831adbbcfef575a Mon Sep 17 00:00:00 2001 From: Thilo Schwarz Date: Thu, 25 Dec 2025 16:26:28 +0100 Subject: [PATCH] Update SonarQube project key and organization in GitLab CI; add dynamic project key to analysis command. --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6317e4d..a659b9a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,8 +13,8 @@ variables: GITLAB_USERNAME: $GITLAB_USERNAME GITLAB_USEREMAIL: GITLAB_USEREMAIL SONAR_HOST_URL: $SONAR_HOST_URL - SONAR_PROJECT_KEY: "thischwa_CloudflareDNS-java" - SONAR_ORGANIZATION: "thischwa" + SONAR_PROJECT_KEY: "th-schwarz_CloudflareDNS-java" + SONAR_ORGANIZATION: "th-schwarz" SONAR_TOKEN: $SONAR_TOKEN 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 @@ -68,7 +68,7 @@ sonarcloud_scan: dependencies: - build 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: - merge_requests - develop