From 5f0ca59af94da1cb03a96e456bd186b3615c575b Mon Sep 17 00:00:00 2001 From: Reinder Kraaij <kraaij@astron.nl> Date: Fri, 19 Jul 2024 16:14:21 +0200 Subject: [PATCH] tune sonar --- .gitlab-ci.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9760d40..7ef08be 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -29,18 +29,20 @@ build_package: expire_in: "1w" -variables: - stage: quality - 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 + sonarcloud-check: + stage: quality image: name: sonarsource/sonar-scanner-cli:latest - entrypoint: [""] + entrypoint: [ "" ] cache: key: "${CI_JOB_NAME}" paths: - .sonar/cache + 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 + before_script: [ ] script: - sonar-scanner only: -- GitLab