Skip to content

Commit c2a5b4e

Browse files
malli
hii
1 parent 0309485 commit c2a5b4e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

jenkinsfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ pipeline {
99
}
1010
stage ('build') {
1111
steps {
12-
withSOnarQubeEnv(Name: 'SONAR_9.2.1', envOnly: true,Id: 'SONAR_TOKEN')
13-
sh 'mvn clean package'
14-
echo "${env.SONAR_HOST-URL}"
12+
withSOnarQubeEnv(installationName: 'SONAR_9.2.1', envOnly: true,credentialsId: 'SONAR_TOKEN') {
13+
'mvn clean package sonar:sonar'
14+
echo "${env.SONAR_HOST_URL}"
15+
}
1516
}
1617
}
1718
}

0 commit comments

Comments
 (0)