Merge branch 'feat/extend_sonar_template' into 'master'
chore(tool-sonar7): Add optional SONAR_PROJECT_NAME. See merge request gilden/ci/gitlab-ci-templates!29
This commit is contained in:
commit
57f6710e31
@ -9,6 +9,9 @@ Mehr Details zu finden hier: https://gitlab.exxcellent.de/gilden/ci/exxcellent-s
|
|||||||
|===
|
|===
|
||||||
|Name |Description | Default Value
|
|Name |Description | Default Value
|
||||||
|SONAR_PROJECT_KEY | Der Sonar-Projekt-Key. | ""
|
|SONAR_PROJECT_KEY | Der Sonar-Projekt-Key. | ""
|
||||||
|
|SONAR_PROJECT_NAME | Der Sonar-Projekt-Name. | ""
|
||||||
|
|
||||||
|
(Es wird dann standardmäßig der Maven project.name verwendet)
|
||||||
|===
|
|===
|
||||||
|
|
||||||
.sonar-template
|
.sonar-template
|
||||||
|
|||||||
@ -4,11 +4,13 @@
|
|||||||
variables:
|
variables:
|
||||||
SONAR_HOST_URL: http://sonar7.exxcellent.de/sonar7
|
SONAR_HOST_URL: http://sonar7.exxcellent.de/sonar7
|
||||||
SONAR_PROJECT_KEY: ""
|
SONAR_PROJECT_KEY: ""
|
||||||
|
SONAR_PROJECT_NAME: ""
|
||||||
SONAR_EXCLUSIONS: "**/target/**,**/src/test/**"
|
SONAR_EXCLUSIONS: "**/target/**,**/src/test/**"
|
||||||
script:
|
script:
|
||||||
- mvn $MAVEN_CLI_OPTS test sonar:sonar
|
- mvn $MAVEN_CLI_OPTS test sonar:sonar
|
||||||
"-Dsonar.host.url=$SONAR_HOST_URL"
|
"-Dsonar.host.url=$SONAR_HOST_URL"
|
||||||
"-Dsonar.login=$SONAR_TOKEN"
|
"-Dsonar.login=$SONAR_TOKEN"
|
||||||
"-Dsonar.projectKey=$SONAR_PROJECT_KEY"
|
"-Dsonar.projectKey=$SONAR_PROJECT_KEY"
|
||||||
|
"-Dsonar.projectName=$SONAR_PROJECT_NAME"
|
||||||
"-Dsonar.exclusions=$SONAR_EXCLUSIONS"
|
"-Dsonar.exclusions=$SONAR_EXCLUSIONS"
|
||||||
- sonar-break-build
|
- sonar-break-build
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user