Skip to content
Snippets Groups Projects
Commit 94227f8f authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

fix: make sonar job fail in case of quality gate issue

parent 1bf5f4ee
No related branches found
No related tags found
3 merge requests!180release V1.10.0,!178release V1.10.0,!164fix: make sonar jov fail in case of quality gate issue
......@@ -98,12 +98,13 @@ deploy_rec:
- docker system prune -a -f
code_analysis:
image: skilldlabs/sonar-scanner:3.4.0
image: registry.forge.grandlyon.com/apoyen2/sonnar-scanner-gl:master
services:
- docker:18.09-dind
stage: sonar-analysis
only:
- dev
- merge_requests
before_script:
- export NODE_PATH=$NODE_PATH:`npm root -g`
- npm install -g typescript
......@@ -116,7 +117,9 @@ code_analysis:
-Dsonar.projectBaseDir=.
-Dsonar.host.url=${SONAR_URL}
-Dsonar.projectKey=${SONAR_PROJECT_KEY}
-Dsonar.exclusions=**/*mock.*.ts,**/*spec.ts
-Dsonar.login=${SONAR_TOKEN}
-Dsonar.qualitygate.wait=true
mr:
image: docker:18.09
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment