From 63044ece488e994e8242e54bfc87a2fa36649396 Mon Sep 17 00:00:00 2001 From: Yadciel Date: Thu, 11 May 2023 19:55:14 +0200 Subject: [PATCH] SQ work? --- jenkinsfile | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index ba86580..32fd1ba 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -22,20 +22,22 @@ pipeline { rem Output a success message echo Resources folder was successfully moved to the dist folder. """ - } } - stage('SCM') { - steps { - checkout scm - } + } + stage('SCM') { + steps { + checkout scm } - stage('SonarQube Analysis') { - steps { - def scannerHome = tool 'SQ'; - withSonarQubeEnv(installationName: 'SQ') { - sh "${scannerHome}/bin/sonar-scanner" - } - } + } + stage('SonarQube Analysis') { + steps { + script { + def scannerHome = tool(name: 'SQ'); + withSonarQubeEnv(installationName: 'SQ') { + sh "${scannerHome}/bin/sonar-scanner" + } + } } } } +}