|
@@ -136,13 +136,17 @@ node{
|
|
|
// }*/
|
|
// }*/
|
|
|
// }
|
|
// }
|
|
|
stage('SonarQube analysis')
|
|
stage('SonarQube analysis')
|
|
|
- {
|
|
|
|
|
- def scannerHome = tool 'SonarQube Scanner';
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ steps {
|
|
|
|
|
+ script {
|
|
|
|
|
+ scannerHome = tool 'SonarQube Scanner'
|
|
|
withSonarQubeEnv('SonarQube')
|
|
withSonarQubeEnv('SonarQube')
|
|
|
{
|
|
{
|
|
|
// If you have configured more than one global server connection, you can specify its name
|
|
// If you have configured more than one global server connection, you can specify its name
|
|
|
sh "${scannerHome}/bin/sonar-scanner -Dsonar.login=admin -Dsonar.password=azerty10"
|
|
sh "${scannerHome}/bin/sonar-scanner -Dsonar.login=admin -Dsonar.password=azerty10"
|
|
|
}
|
|
}
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|