We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0309485 commit c2a5b4eCopy full SHA for c2a5b4e
jenkinsfile
@@ -9,9 +9,10 @@ pipeline {
9
}
10
stage ('build') {
11
steps {
12
- withSOnarQubeEnv(Name: 'SONAR_9.2.1', envOnly: true,Id: 'SONAR_TOKEN')
13
- sh 'mvn clean package'
14
- echo "${env.SONAR_HOST-URL}"
+ withSOnarQubeEnv(installationName: 'SONAR_9.2.1', envOnly: true,credentialsId: 'SONAR_TOKEN') {
+ 'mvn clean package sonar:sonar'
+ echo "${env.SONAR_HOST_URL}"
15
+ }
16
17
18
0 commit comments