diff --git a/documentation/chapters/templates/tool-sonar8.adoc b/documentation/chapters/templates/tool-sonar8.adoc index 6f1a667..1e32ca6 100644 --- a/documentation/chapters/templates/tool-sonar8.adoc +++ b/documentation/chapters/templates/tool-sonar8.adoc @@ -8,14 +8,13 @@ Mehr Details zu finden hier: https://gitlab.exxcellent.de/gilden/ci/exxcellent-s .Variables |=== |Name |Description | Default Value -|SONAR_HOST_URL | Die URL des eXXcellent sonar servers | http://sonar7.exxcellent.de/sonar7 -|SONAR_TOKEN | Token um geschützte Sonar Funktionen auszuführen | "" +|SONAR_HOST_URL | Die URL des eXXcellent sonar servers | https://sonar.exxcellent.de/sonar8 |SONAR_PROJECT_KEY | Der Sonar-Projekt-Key. | "" |SONAR_PROJECT_NAME | Der Sonar-Projekt-Name. | "" (Es wird dann standardmäßig der Maven project.name verwendet) |SONAR_EXCLUSIONS | Von Sonar auszuschließende Bereiche | **/target/**,**/src/test/** |GRADLE_CLI_OPTS | Zusätzliche CLI Opts für Gradle | "" -|SONAR_QUERY_MAX_ATTEMPTS_BUILD_BREAKER | Wie oft soll versucht werden das der Build breaker funktioniert | 30 -|SONAR_QUERY_INTERVAL_BUILD_BREAKER | Wie oft in welchem Intervall soll der Build breaker abgefragt werden | 10000 +|SONAR_QUALITYGATE_WAIT | Definiert, ob auf das Quality-Gate gewartet werden soll. Muss auf True gesetzt werden damit das Quality gate beachtet wird. Wenn das Quality-Gate beachtet werden aber die Pipeline nicht Fehlschlagen soll empfehlen das Flag `allow_failure` auf `true` zu setzen. | true +|SONAR_QUALITYGATE_TIMEOUT | Zeit bis zum Timeout der Quality gate abfrage | 10000 |=== diff --git a/tool-sonar8.gitlab-ci.yml b/tool-sonar8.gitlab-ci.yml index 724d60e..2b0210d 100644 --- a/tool-sonar8.gitlab-ci.yml +++ b/tool-sonar8.gitlab-ci.yml @@ -5,8 +5,8 @@ SONAR_PROJECT_KEY: "" SONAR_PROJECT_NAME: "" SONAR_EXCLUSIONS: "**/target/**,**/src/test/**" - SONAR_QUERY_MAX_ATTEMPTS_BUILD_BREAKER: "30" - SONAR_QUERY_INTERVAL_BUILD_BREAKER: "10000" + SONAR_QUALITYGATE_WAIT: "true" + SONAR_QUALITYGATE_TIMEOUT: "10000" .sonar-template: extends: .sonar-template-common @@ -18,8 +18,8 @@ "-Dsonar.projectKey=$SONAR_PROJECT_KEY" "-Dsonar.projectName=$SONAR_PROJECT_NAME" "-Dsonar.exclusions=$SONAR_EXCLUSIONS" - "-Dsonar.qualitygate.wait=true" - "-Dsonar.qualitygate.timeout=300" + "-Dsonar.qualitygate.wait=$SONAR_QUALITYGATE_WAIT" + "-Dsonar.qualitygate.timeout=$SONAR_QUALITYGATE_TIMEOUT" .sonar-template-gradle: extends: .sonar-template-common @@ -32,4 +32,4 @@ "-Dsonar.projectName=$SONAR_PROJECT_NAME" "-Dsonar.exclusions=$SONAR_EXCLUSIONS" "-Dsonar.qualitygate.wait=$SONAR_QUALITYGATE_WAIT" - "-Dsonar.qualitygate.timeout=$SONAR_QUERY_INTERVAL_BUILD_BREAKER" + "-Dsonar.qualitygate.timeout=$SONAR_QUALITYGATE_TIMEOUT"