From 463694273f9753fa482d41d31812bf46a96ed8c0 Mon Sep 17 00:00:00 2001 From: konsthol Date: Wed, 28 May 2025 16:16:33 +0300 Subject: [PATCH] Update vars/jenkinsPipelineSkeleton.groovy --- vars/jenkinsPipelineSkeleton.groovy | 8 ++++++++ 1 file changed, 8 insertions(+) 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 {