Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
web-et-numerique
web-et-numerique-internet
data.grandlyon.com
web-portal
components
services
csv-catalog-downloader
Commits
67156724
Commit
67156724
authored
Feb 06, 2020
by
FORESTIER Fabien
Browse files
Add sonarqube analysis job in gitlab-ci file.
parent
684496d2
Pipeline
#3694
passed with stages
in 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
67156724
stages
:
-
sonar-analysis
-
build
-
deploy
variables
:
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
:
stage
:
build
only
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment