Skip to content
Snippets Groups Projects
Commit c80694f4 authored by FORESTIER Fabien's avatar FORESTIER Fabien
Browse files

Add sonarqube analysis job in gitlab-ci file.

parent 2accbefb
Branches
Tags
1 merge request!3Update the license
Pipeline #3695 passed
stages: stages:
- sonar-analysis
- build - build
- deploy - deploy
variables: variables:
PROXY_HOST_TARGET: https://download.data.grandlyon.com PROXY_HOST_TARGET: https://download.data.grandlyon.com
SONAR_URL: https://sonarqube.forge.grandlyon.com
sonarqube:
stage: sonar-analysis
only:
- development
before_script:
- export PATH=$PATH:/usr/local/bin/sonar-scanner-3.2.0.1227-linux/bin/
- export NODE_PATH=$NODE_PATH:`npm root -g`
script:
- >
sonar-scanner
-Dsonar.projectName=${SONAR_PROJECT_KEY}
-Dsonar.projectVersion=1.0
-Dsonar.sourceEncoding=UTF-8
-Dsonar.projectBaseDir=.
-Dsonar.host.url=${SONAR_URL}
-Dsonar.projectKey=${SONAR_PROJECT_KEY}
-Dsonar.login=${SONAR_TOKEN}
build_development: build_development:
stage: build stage: build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment