Skip to content

Commit

Permalink
[SHPWR-0] add sonar properties-file
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriarte-mendez committed Jul 17, 2018
1 parent d78cb15 commit 3348f5f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
6 changes: 1 addition & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
Expand Down
14 changes: 14 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -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/**/*

0 comments on commit 3348f5f

Please sign in to comment.