diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1ed14ea9d7bcb4f68f4c2fa14193ba1b1947635a..885eeec346fe6f75e2b65c44bfa89ed32af682ae 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -39,7 +39,7 @@ build: sonar_preview: type: sonar script: - - mvn -q -U -B clean compile sonar:sonar -Dmaven.test.skip=true -Dsonar.host.url=https://en-ice-sonar.cern.ch -Dsonar.analysis.mode=preview -Dsonar.gitlab.commit_sha=$CI_BUILD_REF -Dsonar.gitlab.ref_name=$CI_BUILD_REF_NAME -Dsonar.gitlab.project_id=$CI_PROJECT_ID -Dsonar.gitlab.max_major_issues_gate=0 --settings settings.xml --debug -X + - mvn -q -U -B clean compile sonar:sonar -Dmaven.test.skip=true -Dsonar.host.url=$SONAR_URL -Dsonar.analysis.mode=preview -Dsonar.gitlab.commit_sha=$CI_BUILD_REF -Dsonar.gitlab.ref_name=$CI_BUILD_REF_NAME -Dsonar.gitlab.project_id=$CI_PROJECT_ID -Dsonar.gitlab.max_major_issues_gate=0 --settings settings.xml --debug -X except: - master - tags @@ -47,6 +47,6 @@ sonar_preview: quality_assurance: stage: sonar script: - - mvn package sonar:sonar -Dmaven.test.skip=true -Dsonar.dependencyCheck.reportPath=target/dependency-check-report.xml --settings settings.xml + - mvn package sonar:sonar -Dmaven.test.skip=true -Dsonar.host.url=$SONAR_URL -Dsonar.dependencyCheck.reportPath=target/dependency-check-report.xml --settings settings.xml only: - master