From 790e8e65f722798e8828be4eae3215e4f5ed6264 Mon Sep 17 00:00:00 2001 From: lenape Date: Sat, 12 Jul 2025 09:30:51 +0000 Subject: [PATCH] automated terminal push --- Jenkinsfile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7ad5696..5f3343e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -32,8 +32,16 @@ pipeline { } stage('SonarQube Scan') { steps { - withSonarQubeEnv('SonarQube') { - sh "sonar-scanner -Dsonar.projectKey=nvhi-atsila-microservice -Dsonar.sources=." + script { + // Resolve the SonarQube Scanner installation + def scannerHome = tool 'SonarQubeScanner' + withSonarQubeEnv('SonarQube') { + sh """ + ${scannerHome}/bin/sonar-scanner \ + -Dsonar.projectKey=nvhi-atsila-microservice \ + -Dsonar.sources=. + """ + } } } } @@ -110,4 +118,4 @@ pipeline { } } } -} +} \ No newline at end of file