Skip to content

Commit 4c3a141

Browse files
committed
fix sonar syntax docker#3
1 parent 8c76bf5 commit 4c3a141

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Jenkinsfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ pipeline {
1616

1717
stage('SonarQube Analysis') {
1818
steps {
19-
def scannerHome = tool 'sonar';
20-
// withSonarQubeEnv() {
21-
sh "${scannerHome}/bin/sonar-scanner"
22-
// }
19+
withSonarQubeEnv() {
20+
script {
21+
def scannerHome = tool 'sonar'
22+
sh "${scannerHome}/bin/sonar-scanner"
23+
}
24+
}
2325
}
24-
2526
}
2627

2728
stage('build') {

0 commit comments

Comments
 (0)