Commit 0816f4be authored by FORESTIER Fabien's avatar FORESTIER Fabien
Browse files

Add sonarqube analysis job in gitlab-ci file.

parent 102d7447
Pipeline #3697 passed with stage
in 15 seconds
......@@ -12,11 +12,29 @@ variables:
REINDEXER__DESTINATION_PAGES_INDEX: pages.v5
REINDEXER__POSTS_TEMPLATE_NAME: ghost-posts-template
REINDEXER__PAGES_TEMPLATE_NAME: ghost-pages-template
SONAR_URL: https://sonarqube.forge.grandlyon.com
stages:
- sonar-analysis
- build
- deploy
sonarqube:
stage: sonar-analysis
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:
stage: build
only:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment