|
|
@@ -137,16 +137,12 @@ node{
|
|
|
// }
|
|
|
stage('SonarQube analysis')
|
|
|
{
|
|
|
- steps {
|
|
|
- script {
|
|
|
- scannerHome = tool 'SonarQube Scanner'
|
|
|
+ def scannerHome = tool name: 'SonarQube Scanner', type: 'hudson.plugins.sonar.SonarRunnerInstallation';
|
|
|
withSonarQubeEnv('SonarQube')
|
|
|
{
|
|
|
// 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"
|
|
|
}
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
|