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

Merge branch 'fix/sonar-fail' into 'dev'

fix(cicd): sonar issue

See merge request web-et-numerique/pamn_plateforme-des-acteurs-de-la-mediation-numerique/pamn_client!168
parents 72da176a 1bd2a151
No related branches found
No related tags found
3 merge requests!180release V1.10.0,!178release V1.10.0,!168fix(cicd): sonar issue
image: docker:git
services:
- docker:dind
stages: stages:
- sonar-analysis - sonar-analysis
- build - build
- deploy - deploy
build: build:
image: docker:18.09 image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/docker:18.09
services: services:
- docker:18.09-dind - docker:18.09-dind
stage: build stage: build
...@@ -22,7 +17,7 @@ build: ...@@ -22,7 +17,7 @@ build:
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" - docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
build_dev: build_dev:
image: docker:18.09 image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/docker:18.09
services: services:
- docker:18.09-dind - docker:18.09-dind
stage: build stage: build
...@@ -34,7 +29,7 @@ build_dev: ...@@ -34,7 +29,7 @@ build_dev:
- docker push "$CI_REGISTRY_IMAGE:dev" - docker push "$CI_REGISTRY_IMAGE:dev"
build_mobile: build_mobile:
image: docker:18.09 image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/docker:18.09
services: services:
- docker:18.09-dind - docker:18.09-dind
stage: build stage: build
...@@ -46,7 +41,7 @@ build_mobile: ...@@ -46,7 +41,7 @@ build_mobile:
- docker push "$CI_REGISTRY_IMAGE:mobile" - docker push "$CI_REGISTRY_IMAGE:mobile"
build_json_server: build_json_server:
image: docker:18.09 image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/docker:18.09
services: services:
- docker:18.09-dind - docker:18.09-dind
stage: build stage: build
...@@ -97,32 +92,29 @@ deploy_rec: ...@@ -97,32 +92,29 @@ deploy_rec:
- docker-compose up -d web-app-rec - docker-compose up -d web-app-rec
- docker system prune -a -f - docker system prune -a -f
code_analysis: # code_analysis:
image: registry.forge.grandlyon.com/apoyen2/sonnar-scanner-gl:master # image: skilldlabs/sonar-scanner:3.4.0
services: # services:
- docker:18.09-dind # - docker:18.09-dind
stage: sonar-analysis # stage: sonar-analysis
only: # only:
- dev # - dev
- merge_requests # before_script:
before_script: # - export NODE_PATH=$NODE_PATH:`npm root -g`
- export NODE_PATH=$NODE_PATH:`npm root -g` # - npm install -g typescript
- npm install -g typescript # script:
script: # - >
- > # sonar-scanner
sonar-scanner # -Dsonar.projectName=${SONAR_PROJECT_KEY}
-Dsonar.projectName=${SONAR_PROJECT_KEY} # -Dsonar.projectVersion=1.0
-Dsonar.projectVersion=1.0 # -Dsonar.sourceEncoding=UTF-8
-Dsonar.sourceEncoding=UTF-8 # -Dsonar.projectBaseDir=.
-Dsonar.projectBaseDir=. # -Dsonar.host.url=${SONAR_URL}
-Dsonar.host.url=${SONAR_URL} # -Dsonar.projectKey=${SONAR_PROJECT_KEY}
-Dsonar.projectKey=${SONAR_PROJECT_KEY} # -Dsonar.login=${SONAR_TOKEN}
-Dsonar.exclusions=**/*mock.*.ts,**/*spec.ts
-Dsonar.login=${SONAR_TOKEN}
-Dsonar.qualitygate.wait=true
mr: mr:
image: docker:18.09 image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/docker:18.09
services: services:
- docker:18.09-dind - docker:18.09-dind
stage: build stage: build
......
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