From ec53903726ccd6f3b36d8b784c852a22e5a79dac Mon Sep 17 00:00:00 2001 From: ameniboukattaya Date: Wed, 10 Jun 2026 17:06:03 +0100 Subject: [PATCH] ADD SonarQube --- platform/Jenkinsfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/platform/Jenkinsfile b/platform/Jenkinsfile index f51b962..8cb1238 100644 --- a/platform/Jenkinsfile +++ b/platform/Jenkinsfile @@ -18,6 +18,19 @@ pipeline { } } + stage('SonarQube Analysis') { + steps { + withSonarQubeEnv('sonarqube') { + sh ''' + sonar-scanner \ + -Dsonar.projectKey=management-platform \ + -Dsonar.sources=platform \ + -Dsonar.python.version=3 + ''' + } + } + } + stage('Deploy to Server 1') { steps { sh '''