From 62e4655056ed8eb2522d408bc4eca8d126f1b675 Mon Sep 17 00:00:00 2001 From: Yadciel Date: Thu, 11 May 2023 19:41:32 +0200 Subject: [PATCH] SQ --- jenkinsfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/jenkinsfile b/jenkinsfile index a4bd45d..39fd83b 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -23,6 +23,15 @@ pipeline { echo Resources folder was successfully moved to the dist folder. """ } + stage('SCM') { + checkout scm + } + stage('SonarQube Analysis') { + def scannerHome = tool 'SQ'; + withSonarQubeEnv() { + sh "${scannerHome}/bin/sonar-scanner" + } + } } } }