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:
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"'

2
sonar-project.properties Normal file
View File

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