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: ...@@ -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
......
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