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 {