Merge branch '85-migrate-to-fsr-im-sonarqube' into 'development'

update sonarqube ci

See merge request htwk-software/htwkalender!134
This commit is contained in:
Lennart Yaguboglu
2026-02-25 12:39:36 +01:00
2 changed files with 14 additions and 8 deletions

View File

@@ -59,21 +59,25 @@ lint-ical:
sonarqube-data-manager: sonarqube-data-manager:
stage: sonarqube-check stage: sonarqube-check
tags: tags:
- imn - fdit
image: image:
name: sonarsource/sonar-scanner-cli:5.0 name: sonarsource/sonar-scanner-cli:11
entrypoint: entrypoint:
- '' - ''
variables: variables:
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" SONAR_USER_HOME: '${CI_PROJECT_DIR}/.sonar' # Defines the location of the analysis task cache
GIT_DEPTH: '0' GIT_DEPTH: '0' # Tells git to fetch all the branches of the project, required by the analysis task
cache: cache:
key: "${CI_JOB_NAME}" policy: pull-push
key: 'sonar-cache-$CI_COMMIT_REF_SLUG'
paths: paths:
- ".sonar/cache" - '${SONAR_USER_HOME}/cache'
- sonar-scanner/
script: script:
- cd services/data-manager - sonar-scanner -Dsonar.host.url="${SONAR_HOST_URL}"
- sonar-scanner
allow_failure: true allow_failure: true
rules: rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'

2
sonar-project.properties Normal file
View File

@@ -0,0 +1,2 @@
sonar.projectKey=HTWKalender
sonar.qualitygate.wait=true