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
Nicolas PERNOUD
Vestibule
Commits
d8ae957d
Commit
d8ae957d
authored
Apr 06, 2022
by
Pierre-Eliott BRESSAND
Browse files
Update .gitlab-ci.yml
parent
796d21a9
Pipeline
#24767
passed with stage
in 39 seconds
Changes
1
Pipelines
13
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
d8ae957d
...
@@ -2,6 +2,7 @@ variables:
...
@@ -2,6 +2,7 @@ variables:
DOCKER_DRIVER
:
overlay2
DOCKER_DRIVER
:
overlay2
DOCKER_TLS_CERTDIR
:
"
"
DOCKER_TLS_CERTDIR
:
"
"
SONAR_URL
:
https://sonarqube.forge.grandlyon.com
SONAR_URL
:
https://sonarqube.forge.grandlyon.com
SONAR_URL_9000
:
http://sonarqube.forge.grandlyon.com:9000
sonarqube-check
:
sonarqube-check
:
image
:
image
:
...
@@ -15,10 +16,8 @@ sonarqube-check:
...
@@ -15,10 +16,8 @@ sonarqube-check:
paths
:
paths
:
-
.sonar/cache
-
.sonar/cache
script
:
script
:
-
'
curl
-X
POST
-H
"Login:
${SONAR_TOKEN}"
${SONAR_URL}/api/project_branches/rename?name=master&project=${CI_PROJECT_NAME}'
-
'
curl
-X
POST
-H
"Login:
${SONAR_TOKEN}"
${SONAR_URL_9000}/api/project_branches/rename?name=master&project=${CI_PROJECT_NAME}'
-
echo "sonar-scanner -Dsonar.login=${SONAR_TOKEN} -Dsonar.projectName=${CI_PROJECT_NAME} -Dsonar.projectKey=${SONAR_PROJECT_KEY} -Dsonar.qualitygate.wait=true -Dsonar.host.url=${SONAR_URL}" > /tmp/commande
-
sonar-scanner -Dsonar.login=${SONAR_TOKEN} -Dsonar.projectName=${CI_PROJECT_NAME} -Dsonar.projectKey=${SONAR_PROJECT_KEY} -Dsonar.qualitygate.wait=true -Dsonar.host.url=${SONAR_URL_9000}
-
sleep
300
-
sonar-scanner -Dsonar.login=${SONAR_TOKEN} -Dsonar.projectName=${CI_PROJECT_NAME} -Dsonar.projectKey=${SONAR_PROJECT_KEY} -Dsonar.qualitygate.wait=true -Dsonar.host.url=${SONAR_URL}
allow_failure
:
true
allow_failure
:
true
only
:
only
:
-
master
-
master
...
...
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