We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11f7249 commit 6a17ef8Copy full SHA for 6a17ef8
Jenkinsfile-online
@@ -40,7 +40,7 @@ pipeline {
40
container ('maven') {
41
withCredentials([string(credentialsId: "$SONAR_TOKEN_ID", variable: 'SONAR_TOKEN')]) {
42
withSonarQubeEnv('sonar') {
43
- sh "${scannerHome}/bin/sonar-scanner -Dsonar.projectKey=ks-devops -Dsonar.sources=. -Dsonar.login=$SONAR_TOKEN"
+ sh "mvn sonar:sonar -o -gs `pwd`/configuration/settings.xml -Dsonar.branch=$BRANCH_NAME -Dsonar.login=$SONAR_TOKEN_ID"
44
}
45
46
timeout(time: 1, unit: 'HOURS') {
0 commit comments