Skip to content
Snippets Groups Projects
Commit f9572d05 authored by michael.minelli's avatar michael.minelli
Browse files

Add sonar integration

parent 7819f93a
No related branches found
No related tags found
No related merge requests found
Pipeline #29889 passed
...@@ -5,9 +5,32 @@ variables: ...@@ -5,9 +5,32 @@ variables:
stages: stages:
- code_quality
- deploy - deploy
code_quality:sonarqube:
stage: code_quality
tags:
- code_quality
image:
name: leadrien/isc-sonar-scanner-cli
entrypoint: [ "" ]
variables:
GIT_SUBMODULE_STRATEGY: recursive
GIT_SUBMODULE_FORCE_HTTPS: "true"
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}"
paths:
- .sonar/cache
script:
- sonar-scanner
rules:
- if: '$CI_COMMIT_TAG =~ "/^$/"'
deploy: deploy:
image: docker:latest image: docker:latest
stage: deploy stage: deploy
......
sonar.projectKey=DojoBackend
sonar.qualitygate.wait=true
sonar.exclusions=API/**, Frontend/**
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment