= Sonar 8

The following templates provide integrations for Sonar
More Details can be found here: https://www.exxcellent.de/confluence/x/RIWCC[Confluence: Sonar Plugin Setup].

.Variables
|===
|Name |Description | Default Value
|SONAR_HOST_URL | The Url for the Sonar server  | https://sonar.exxcellent.de/sonar8
|SONAR_TOKEN | The Sonar token to call protected sonar functions  | ""
|SONAR_PROJECT_KEY | The Sonar-Projekt-Key of your Project.  | ""
|SONAR_PROJECT_NAME | The Sonar-Projekt-Name.  | "" (Es wird dann standardmäßig der Maven project.name verwendet)
|SONAR_EXCLUSIONS | Paths that will not be scanned by Sonar  | **/target/**,**/src/test/**
|SONAR_QUALITYGATE_WAIT | Defines if the quality-gate should be considered while evaluation.
Has to be `true` if the quality-gate should fail your pipelines. Please consider setting `allow_failure` to `true` if your pipeline shouldn't fail but the quality gate should be still called. | true
|SONAR_QUALITYGATE_TIMEOUT | Define the timeout time when the quality-gate should be timing out. |  10000

|===

:template: static-analysis/sonar-8.gitlab-ci.yml
include::../../../template-printer.adoc[]