diff --git a/vars/jenkinsPipelineSkeleton.groovy b/vars/jenkinsPipelineSkeleton.groovy index 2ed04b7..df67b36 100644 --- a/vars/jenkinsPipelineSkeleton.groovy +++ b/vars/jenkinsPipelineSkeleton.groovy @@ -26,6 +26,14 @@ def call(String projectName, Map config) { } } + stage('SonarQube Analysis') { + steps { + withSonarQubeEnv('SonarQube') { + sh 'mvn clean package sonar:sonar' + } + } + } + stage('Build and Deploy') { steps { script {