From ecb730d77d95b921b54efa9b89839d650f49836b Mon Sep 17 00:00:00 2001 From: Lisa Lamparter Date: Mon, 18 Oct 2021 10:49:13 +0200 Subject: [PATCH 1/2] chore(tool-sonar7): Add optional SONAR_PROJECT_NAME. --- tool-sonar7.gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tool-sonar7.gitlab-ci.yml b/tool-sonar7.gitlab-ci.yml index f1e6873..c98314f 100644 --- a/tool-sonar7.gitlab-ci.yml +++ b/tool-sonar7.gitlab-ci.yml @@ -4,11 +4,13 @@ variables: SONAR_HOST_URL: http://sonar7.exxcellent.de/sonar7 SONAR_PROJECT_KEY: "" + SONAR_PROJECT_NAME: "" SONAR_EXCLUSIONS: "**/target/**,**/src/test/**" script: - mvn $MAVEN_CLI_OPTS test sonar:sonar "-Dsonar.host.url=$SONAR_HOST_URL" "-Dsonar.login=$SONAR_TOKEN" "-Dsonar.projectKey=$SONAR_PROJECT_KEY" + "-Dsonar.projectName=$SONAR_PROJECT_NAME" "-Dsonar.exclusions=$SONAR_EXCLUSIONS" - sonar-break-build From 09985a96908737bef2abd9255468172381407a5d Mon Sep 17 00:00:00 2001 From: Lisa Lamparter Date: Mon, 18 Oct 2021 11:03:56 +0200 Subject: [PATCH 2/2] docs(tool-sonar7): Add new variable SONAR_PROJECT_NAME to documentation. --- documentation/chapters/templates/tool-sonar7.adoc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/documentation/chapters/templates/tool-sonar7.adoc b/documentation/chapters/templates/tool-sonar7.adoc index f8a5891..b65ad5e 100644 --- a/documentation/chapters/templates/tool-sonar7.adoc +++ b/documentation/chapters/templates/tool-sonar7.adoc @@ -9,6 +9,9 @@ Mehr Details zu finden hier: https://gitlab.exxcellent.de/gilden/ci/exxcellent-s |=== |Name |Description | Default Value |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-template