sonar-scanner configuration
This commit is contained in:
parent
113e4db9b6
commit
d1b2a1ee3c
|
@ -19,10 +19,16 @@ pipeline:
|
||||||
image: sonarsource/sonar-scanner-cli
|
image: sonarsource/sonar-scanner-cli
|
||||||
secrets: [sonar_token, sonar_host, sonar_project]
|
secrets: [sonar_token, sonar_host, sonar_project]
|
||||||
commands:
|
commands:
|
||||||
- sonar-scanner -Dsonar.projectKey=$SONAR_PROJECT -Dsonar.sources=. -Dsonar.host.url=$SONAR_HOST
|
- sonar-scanner \
|
||||||
|
-Dsonar.projectKey=$SONAR_PROJECT \
|
||||||
|
-Dsonar.sources=. \
|
||||||
|
-Dsonar.host.url=$SONAR_HOST \
|
||||||
|
-Dsonar.pullrequest.key=$CI_COMMIT_PULL_REQUEST \
|
||||||
|
-Dsonar.pullrequest.branch=$CI_COMMIT_SOURCE_BRANCH \
|
||||||
|
-Dsonar.pullrequest.base=$CI_COMMIT_TARGET_BRANCH
|
||||||
failure: ignore
|
failure: ignore
|
||||||
when:
|
when:
|
||||||
event: [push, pull_request]
|
event: [pull_request]
|
||||||
|
|
||||||
package:
|
package:
|
||||||
image: gitnet.fr/deblan/devenv
|
image: gitnet.fr/deblan/devenv
|
||||||
|
|
Loading…
Reference in a new issue