update sonarqube ci

This commit is contained in:
Lennart Yaguboglu
2026-02-25 12:38:57 +01:00
parent 0d05b0240b
commit 5d9a0ece1d
2 changed files with 14 additions and 8 deletions

View File

@@ -59,21 +59,25 @@ lint-ical:
sonarqube-data-manager:
stage: sonarqube-check
tags:
- imn
- fdit
image:
name: sonarsource/sonar-scanner-cli:5.0
name: sonarsource/sonar-scanner-cli:11
entrypoint:
- ''
variables:
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar"
GIT_DEPTH: '0'
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
cache:
key: "${CI_JOB_NAME}"
policy: pull-push
key: 'sonar-cache-$CI_COMMIT_REF_SLUG'
paths:
- ".sonar/cache"
- '${SONAR_USER_HOME}/cache'
- sonar-scanner/
script:
- cd services/data-manager
- sonar-scanner
- sonar-scanner -Dsonar.host.url="${SONAR_HOST_URL}"
allow_failure: true
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'