_
This commit is contained in:
parent
47ceeca0cd
commit
57111e5766
@ -32,8 +32,8 @@ pipeline {
|
|||||||
stage('SonarQube Analysis') {
|
stage('SonarQube Analysis') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
def scannerHome = tool(name: 'SonarScanner');
|
def scannerHome = tool 'SQ'; // Use the name you configured in Jenkins
|
||||||
withSonarQubeEnv(installationName: 'SonarScanner') {
|
withSonarQubeEnv(installationName: 'SQ') { // Use the same name here
|
||||||
sh "${scannerHome}/bin/sonar-scanner"
|
sh "${scannerHome}/bin/sonar-scanner"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user