This commit is contained in:
Yadciel 2023-05-11 20:09:31 +02:00
parent 47ceeca0cd
commit 57111e5766

View File

@ -32,10 +32,10 @@ pipeline {
stage('SonarQube Analysis') {
steps {
script {
def scannerHome = tool(name: 'SonarScanner');
withSonarQubeEnv(installationName: 'SonarScanner') {
sh "${scannerHome}/bin/sonar-scanner"
}
def scannerHome = tool 'SQ'; // Use the name you configured in Jenkins
withSonarQubeEnv(installationName: 'SQ') { // Use the same name here
sh "${scannerHome}/bin/sonar-scanner"
}
}
}
}