diff --git a/jenkinsfile b/jenkinsfile index 4c23923..e0c9068 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -25,12 +25,16 @@ pipeline { } } stage('SCM') { - checkout scm + steps { + checkout scm + } } stage('SonarQube Analysis') { - def scannerHome = tool 'SQ'; - withSonarQubeEnv() { - sh "${scannerHome}/bin/sonar-scanner" + steps { + def scannerHome = tool 'SQ'; + withSonarQubeEnv() { + sh "${scannerHome}/bin/sonar-scanner" + } } } }