From 6ec26df623987ad23431d514be72f99fde0008f8 Mon Sep 17 00:00:00 2001 From: Dominick Leppich Date: Tue, 1 Oct 2024 10:11:22 +0200 Subject: [PATCH] ci: update to latest Jenkinsfile --- Jenkinsfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 6d1a6cb..97fbba8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,6 +28,7 @@ pipeline { branch 'master' branch 'release_*' branch 'hotfix_release_*' + branch 'sonar_*' allOf { branch 'PR-*' expression { env.CHANGE_BRANCH.startsWith("release_") } @@ -55,6 +56,14 @@ pipeline { sh 'mvn clean verify -U -P release-build' } } + stage('build-sonar') { + when { + branch 'sonar_*' + } + steps { + sh 'mvn clean verify -U -P sonar-build' + } + } stage('sonarcloud') { when { allOf {