Merge branch 'feature/sonar-tool-build-breaker' into 'master'
feat(sonar-template): make skip build breaker configurable Closes ci-cd#84 See merge request gilden/ci/gitlab-ci-templates!43
This commit is contained in:
commit
c607381e6a
@ -8,10 +8,14 @@ Mehr Details zu finden hier: https://gitlab.exxcellent.de/gilden/ci/exxcellent-s
|
|||||||
.Variables
|
.Variables
|
||||||
|===
|
|===
|
||||||
|Name |Description | Default Value
|
|Name |Description | Default Value
|
||||||
|
|SONAR_HOST_URL | Url des Sonar Host Systems | "http://sonar7.exxcellent.de/sonar7"
|
||||||
|SONAR_PROJECT_KEY | Der Sonar-Projekt-Key. | ""
|
|SONAR_PROJECT_KEY | Der Sonar-Projekt-Key. | ""
|
||||||
|SONAR_PROJECT_NAME | Der Sonar-Projekt-Name. | ""
|
|SONAR_PROJECT_NAME | Der Sonar-Projekt-Name. | ""
|
||||||
|
|
||||||
(Es wird dann standardmäßig der Maven project.name verwendet)
|
(Es wird dann standardmäßig der Maven project.name verwendet)
|
||||||
|
|SONAR_EXCLUSIONS | Files die Sonar ausgeschlossen werden |"**/target/**,**/src/test/**"
|
||||||
|
|SONAR_SKIP_BUILD_BREAKER | Definiert ob der Build Breaker übersprungen werden soll | "true"
|
||||||
|
|
||||||
|===
|
|===
|
||||||
|
|
||||||
.sonar-template
|
.sonar-template
|
||||||
|
|||||||
@ -6,6 +6,7 @@
|
|||||||
SONAR_PROJECT_KEY: ""
|
SONAR_PROJECT_KEY: ""
|
||||||
SONAR_PROJECT_NAME: ""
|
SONAR_PROJECT_NAME: ""
|
||||||
SONAR_EXCLUSIONS: "**/target/**,**/src/test/**"
|
SONAR_EXCLUSIONS: "**/target/**,**/src/test/**"
|
||||||
|
SONAR_SKIP_BUILD_BREAKER: "true"
|
||||||
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"
|
||||||
@ -13,4 +14,4 @@
|
|||||||
"-Dsonar.projectKey=$SONAR_PROJECT_KEY"
|
"-Dsonar.projectKey=$SONAR_PROJECT_KEY"
|
||||||
"-Dsonar.projectName=$SONAR_PROJECT_NAME"
|
"-Dsonar.projectName=$SONAR_PROJECT_NAME"
|
||||||
"-Dsonar.exclusions=$SONAR_EXCLUSIONS"
|
"-Dsonar.exclusions=$SONAR_EXCLUSIONS"
|
||||||
"-Dsonar.buildbreaker.skip=true"
|
"-Dsonar.buildbreaker.skip=$SONAR_SKIP_BUILDBREAKER"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user