Adapt sonar properties (#458)

* Fixed deprecated use of jacoco reportPath with SonarQube 6.2

(see https://jira.sonarsource.com/browse/SONARJAVA-1887)

Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>

* Deep nested modules included into coverage reports as well

Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
This commit is contained in:
Dominic Schabel
2017-03-18 17:47:59 +01:00
committed by Kai Zimmermann
parent 602fb78168
commit 84857960cb
5 changed files with 17 additions and 15 deletions

View File

@@ -11,7 +11,7 @@
echo $CI_PULL_REQUEST pull request
# regular sonar on master
if [ "$CIRCLE_BRANCH" = "master" ]; then
mvn verify license:check sonar:sonar -Dsonar.login=$SONAR_SERVER_TOKEN -Dsonar.exclusions=**/target/generated-sources/apt/**,**/src/test/**,**/src/main/java/org/eclipse/hawkbit/repository/test/** -Dsonar.coverage.exclusions=**/src/main/java/org/eclipse/hawkbit/ui/**,**/target/generated-sources/apt/**,**/src/main/java/org/eclipse/hawkbit/repository/test/**
mvn verify license:check sonar:sonar -Dsonar.login=$SONAR_SERVER_TOKEN
# preview in case of pull request - disabled as circle does not fill those with pull reuqests from different directories
else
#if [ -n "$CI_PULL_REQUEST" ]; then