Update vars/sonarScan.groovy
This commit is contained in:
1 parent
6dae6d0a94
commit
3d80e984ee
1 file changed
+4
-4
@@ -8,10 +8,10 @@ def call(String projectKey, Map config = [:]) {
|
||||
stage('SonarQube analysis') {
|
||||
withCredentials([string(credentialsId: 'sonarqube-token', variable: 'SONAR_TOKEN')]) {
|
||||
sh """
|
||||
sonar-scanner \
|
||||
-Dsonar.host.url=${host} \
|
||||
-Dsonar.projectKey=${projectKey} \
|
||||
-Dsonar.sources=${sources} \
|
||||
sonar-scanner \\
|
||||
-Dsonar.host.url=${host} \\
|
||||
-Dsonar.projectKey=${projectKey} \\
|
||||
-Dsonar.sources=${sources} \\
|
||||
-Dsonar.token=\${SONAR_TOKEN}
|
||||
"""
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user