Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
anis
anis-client
Commits
0707a62b
Commit
0707a62b
authored
Sep 25, 2019
by
François Agneray
Browse files
add sonar stage into gitlab-ci
parent
c53f81e6
Pipeline
#1562
passed with stages
in 10 minutes and 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
0707a62b
stages
:
-
install
-
sonar
-
build
-
deploy
variables
:
VERSION
:
"
3.0"
SONARQUBE_URL
:
https://sonarqube.lam.fr
CONTAINER_IMAGE
:
portus.lam.fr/anis/anis-client
install
:
...
...
@@ -19,7 +22,16 @@ install:
policy
:
push
only
:
refs
:
-
develop
-
sonar
sonar_scanner
:
image
:
portus.lam.fr/ci-tools/sonar-scanner:latest
stage
:
sonar
script
:
-
sonar-scanner -Dsonar.projectKey=anis-client -Dsonar.sources=src -Dsonar.projectVersion=$VERSION -Dsonar.host.url=$SONARQUBE_URL -Dsonar.login=$SONAR_TOKEN
only
:
refs
:
-
sonar
build
:
image
:
docker:stable
...
...
@@ -35,7 +47,7 @@ build:
policy
:
pull
only
:
refs
:
-
develop
-
sonar
deploy
:
image
:
alpine
...
...
@@ -45,4 +57,4 @@ deploy:
-
curl -XPOST $DEV_WEBHOOK
only
:
refs
:
-
develop
\ No newline at end of file
-
sonar
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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