From 2be9b65e218009766fa5cd4799caf0c53faa5f22 Mon Sep 17 00:00:00 2001 From: Christian Kaddatz Date: Fri, 1 Apr 2022 19:10:16 +0200 Subject: [PATCH] chore: Setup sonar 8 --- tool-sonar7.gitlab-ci.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tool-sonar7.gitlab-ci.yml b/tool-sonar7.gitlab-ci.yml index c5fbc24..811d702 100644 --- a/tool-sonar7.gitlab-ci.yml +++ b/tool-sonar7.gitlab-ci.yml @@ -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