Commit d8ae957d authored by Pierre-Eliott BRESSAND's avatar Pierre-Eliott BRESSAND
Browse files

Update .gitlab-ci.yml

parent 796d21a9
Pipeline #24767 passed with stage
in 39 seconds
......@@ -2,6 +2,7 @@ variables:
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ""
SONAR_URL: https://sonarqube.forge.grandlyon.com
SONAR_URL_9000: http://sonarqube.forge.grandlyon.com:9000
sonarqube-check:
image:
......@@ -15,10 +16,8 @@ sonarqube-check:
paths:
- .sonar/cache
script:
- 'curl -X POST -H "Login: ${SONAR_TOKEN}" ${SONAR_URL}/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
- 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}
- 'curl -X POST -H "Login: ${SONAR_TOKEN}" ${SONAR_URL_9000}/api/project_branches/rename?name=master&project=${CI_PROJECT_NAME}'
- 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}
allow_failure: true
only:
- master
......
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