Skip to content

Commit

Permalink
move sonar scanner arguments to sonar-project file
Browse files Browse the repository at this point in the history
  • Loading branch information
dniel committed Mar 1, 2019
1 parent 07db7e0 commit 6be9c21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ pipeline {
steps {
container('sonar-scanner') {
withSonarQubeEnv('SonarCloud') {
sh "ls -la target"
sh "sonar-scanner -X -Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml -Dsonar.projectKey=dniel_traefik-forward-auth0 -Dsonar.organization=dniel-github -Dsonar.projectVersion=${appVersion}"
sh "sonar-scanner -Dsonar.projectVersion=${appVersion}"
}
}
}
Expand Down
5 changes: 5 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sonar.organization=dniel-github
sonar.projectKey=dniel_traefik-forward-auth0
sonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml
sonar.sources=src
sonar.sourceEncoding=UTF-8

0 comments on commit 6be9c21

Please sign in to comment.