mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2026-03-02 06:33:56 +01:00
update sonarqube ci
This commit is contained in:
@@ -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
2
sonar-project.properties
Normal file
@@ -0,0 +1,2 @@
|
||||
sonar.projectKey=HTWKalender
|
||||
sonar.qualitygate.wait=true
|
||||
Reference in New Issue
Block a user