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" + } + } } } }