From f7035fad011ef08bcd72f7e3e74f8684b54f6278 Mon Sep 17 00:00:00 2001 From: Thilo Schwarz Date: Tue, 15 Apr 2025 19:13:28 +0200 Subject: [PATCH] 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. --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9c0009c..bf55d8a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,11 +8,11 @@ stages: - sonarcloud_scan variables: - GITLAB_CLONE_DIR: "/builds/thischwa/CloudflareDNS-java" + GITLAB_CLONE_DIR: "/builds/ths6435116/CloudflareDNS-java" # GITLAB_CLONE_DIR: "cloudflaredns-java" SONAR_HOST_URL: $SONAR_HOST_URL - SONAR_PROJECT_KEY: "thischwa_CloudflareDNS-java" - SONAR_ORGANIZATION: "thischwa" + SONAR_PROJECT_KEY: "ths6435116_CloudflareDNS-java" + SONAR_ORGANIZATION: "ths6435116" SONAR_TOKEN: $SONAR_TOKEN # Ensure this token is correctly set in GitLab CI/CD variables SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task