diff --git a/tool-sonar7.gitlab-ci.yml b/tool-sonar7.gitlab-ci.yml index 2ee397d..ff23d38 100644 --- a/tool-sonar7.gitlab-ci.yml +++ b/tool-sonar7.gitlab-ci.yml @@ -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"