testing sonarqube
This commit is contained in:
parent
0d5934ba92
commit
fe3e302da6
13
.gitlab-ci-yml
Normal file
13
.gitlab-ci-yml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
sonarqube_master_job:
|
||||||
|
stage: test
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
script:
|
||||||
|
- mvn --batch-mode verify sonar:sonar -Dsonar.host.url=$SONAR_URL -Dsonar.login=$SONAR_LOGIN
|
||||||
|
|
||||||
|
sonarqube_preview_feature_job:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- git checkout origin/master
|
||||||
|
- git merge $CI_COMMIT_REF --no-commit --no-ff
|
||||||
|
- mvn --batch-mode verify sonar:sonar -Dsonar.host.url=http://192.168.1.2:9000 -Dsonar.login=05cb9755e10655966bf7931a57efcd7b276dd8b05cb9755e10655966bf7931a57efcd7b276dd8b66 -Dsonar.analysis.mode=preview -Dsonar.gitlab.project_id=$CI_PROJECT_PATH -Dsonar.gitlab.commit_sha=$CI_COMMIT_REF -Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME
|
Loading…
Reference in New Issue
Block a user