feat(tool-sonar): Add sonar-template for gradle

This commit is contained in:
Timo Beller 2022-01-13 16:48:42 +01:00
parent c607381e6a
commit f93b0f55db

View File

@ -15,3 +15,20 @@
"-Dsonar.projectName=$SONAR_PROJECT_NAME"
"-Dsonar.exclusions=$SONAR_EXCLUSIONS"
"-Dsonar.buildbreaker.skip=$SONAR_SKIP_BUILDBREAKER"
.sonar-template-gradle:
stage: test
image: gitlab.exxcellent.de:4567/gilden/ci/exxcellent-sonar-tool:latest
variables:
SONAR_HOST_URL: http://sonar7.exxcellent.de/sonar7
SONAR_PROJECT_KEY: ""
SONAR_PROJECT_NAME: ""
SONAR_EXCLUSIONS: "**/target/**,**/src/test/**"
script:
- ./gradlew $GRADLE_OPTS sonarqube
"-Dsonar.host.url=$SONAR_HOST_URL"
"-Dsonar.login=$SONAR_TOKEN"
"-Dsonar.projectKey=$SONAR_PROJECT_KEY"
"-Dsonar.projectName=$SONAR_PROJECT_NAME"
"-Dsonar.exclusions=$SONAR_EXCLUSIONS"
"-Dsonar.buildbreaker.skip=$SONAR_SKIP_BUILDBREAKER"