From 3348f5f3aef7faad5cd030b3b91740c6f73e4b95 Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 17 Jul 2018 10:19:15 +0200 Subject: [PATCH] [SHPWR-0] add sonar properties-file --- Jenkinsfile | 6 +----- sonar-project.properties | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 sonar-project.properties diff --git a/Jenkinsfile b/Jenkinsfile index af3fe7d0..2569b09f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -45,14 +45,10 @@ pipeline { agent { label "master" } steps { script { - echo "install sonar-scanner...." def scannerHome = tool name: 'SonarQube Scanner 3.0.1', type: 'hudson.plugins.sonar.SonarRunnerInstallation'; echo "scannerHome = $scannerHome ...." withSonarQubeEnv() { - sh "$scannerHome/bin/sonar-scanner \ - -Dsonar.projectKey=devmo_shopware5_module \ - -Dsonar.sources=./ \ - -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_AUTH_TOKEN" + sh "$scannerHome/bin/sonar-scanner -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.login=$SONAR_AUTH_TOKEN" } } } diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 00000000..a7675842 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,14 @@ +# must be unique in a given SonarQube instance +sonar.projectKey=devmo-shopware5-module +# this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1. +sonar.projectName=DevMO Shopware5 Module +sonar.projectVersion=5.0.7 + +# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. +# This property is optional if sonar.modules is set. +sonar.sources=. + +# Encoding of the source code. Default is default system encoding +sonar.sourceEncoding=UTF-8 + +sonar.exclusions=Component/Library/**/*