I’m trying to use sonar scanner 4.3 with jenkins 2.222.3
I have configured the plugin and works fine if I call the scanner from one project, but not from one pipeline.
I’m using this:
node {
stage('SonarQube analysis') {
def scannerHome = tool 'SonarQubeScanner';
withSonarQubeEnv('sonar_scanner') { // If you have configured more than one global server connection, you can specify its name
sh "${scannerHome}/bin/sonar-scanner"
}
}
}
ERROR: SonarQube installation defined in this job (sonar_scanner) does not match any configured installation. Number of installations that can be configured: 1.