From 57111e5766f272eaca8fc9fac4760858a1f0fb2b Mon Sep 17 00:00:00 2001 From: Yadciel Date: Thu, 11 May 2023 20:09:31 +0200 Subject: [PATCH] _ --- jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index 92f8617..0f61b82 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -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" + } } } }