Skip to content

Commit 67b3894

Browse files
committed
fix sonar syntax
1 parent 5e84bbc commit 67b3894

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

Jenkinsfile

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,21 @@ pipeline {
77
}
88

99
stages {
10-
10+
1111
stage('SCM') {
12-
checkout scm
12+
steps {
13+
checkout scm
14+
}
1315
}
1416

1517
stage('SonarQube Analysis') {
16-
def scannerHome = tool 'SonarScanner';
17-
withSonarQubeEnv() {
18-
sh "${scannerHome}/bin/sonar-scanner"
18+
steps {
19+
def scannerHome = tool 'SonarScanner';
20+
withSonarQubeEnv() {
21+
sh "${scannerHome}/bin/sonar-scanner"
22+
}
1923
}
24+
2025
}
2126

2227
stage('build') {

0 commit comments

Comments
 (0)