chore: Setup sonar 8

This commit is contained in:
Christian Kaddatz 2022-04-01 19:10:16 +02:00
parent f0c6b7a531
commit 2be9b65e21

View File

@ -1,9 +1,9 @@
.sonar-template-common:
stage: test
variables:
SONAR_HOST_URL: http://sonar7.exxcellent.de/sonar7
SONAR_PROJECT_KEY: ""
SONAR_PROJECT_NAME: ""
SONAR_HOST_URL: https://sonar.exxcellent.de/sonar8
SONAR_PROJECT_KEY: "java_backend_sonar_test"
SONAR_PROJECT_NAME: "java_backend_sonar_test"
SONAR_EXCLUSIONS: "**/target/**,**/src/test/**"
SONAR_SKIP_BUILD_BREAKER: "true"
SONAR_QUERY_MAX_ATTEMPTS_BUILD_BREAKER: "30"
@ -19,9 +19,11 @@
"-Dsonar.projectKey=$SONAR_PROJECT_KEY"
"-Dsonar.projectName=$SONAR_PROJECT_NAME"
"-Dsonar.exclusions=$SONAR_EXCLUSIONS"
"-Dsonar.buildbreaker.skip=$SONAR_SKIP_BUILD_BREAKER"
"-Dsonar.buildbreaker.queryMaxAttempts=$SONAR_QUERY_MAX_ATTEMPTS_BUILD_BREAKER"
"-Dsonar.buildbreaker.queryInterval=$SONAR_QUERY_INTERVAL_BUILD_BREAKER"
"-Dsonar.qualitygate.wait=true"
"-Dsonar.qualitygate.timeout=30"
#"-Dsonar.buildbreaker.skip=$SONAR_SKIP_BUILD_BREAKER"
#"-Dsonar.buildbreaker.queryMaxAttempts=$SONAR_QUERY_MAX_ATTEMPTS_BUILD_BREAKER"
#"-Dsonar.buildbreaker.queryInterval=$SONAR_QUERY_INTERVAL_BUILD_BREAKER"
.sonar-template-gradle:
extends: .sonar-template-common