From f61dce8ca8f7be0166cc4f6ba6161192a2ae981c Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Fri, 6 Dec 2024 15:45:56 +0100
Subject: [PATCH] build maven and image as separate step in order to avoid
 double maven-source-plugin calls

---
 Jenkinsfile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 5ab8526be1..440fad564c 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -163,7 +163,8 @@ pipeline {
 
                     configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
                         sh 'mvn --version'
-                        sh "mvn --no-transfer-progress -s $MAVEN_SETTINGS -pl -alfa-client clean install spring-boot:build-image -Dspring-boot.build-image.imageName=docker.ozg-sh.de/alfa:${IMAGE_TAG} -Dspring-boot.build-image.publish -Dmaven.wagon.http.retryHandler.count=3"
+                        sh "mvn --no-transfer-progress -s $MAVEN_SETTINGS -pl -alfa-client clean install"
+                        sh "mvn --no-transfer-progress -s $MAVEN_SETTINGS -pl -alfa-client spring-boot:build-image -Dspring-boot.build-image.imageName=docker.ozg-sh.de/alfa:${IMAGE_TAG} -Dspring-boot.build-image.publish -Dmaven.wagon.http.retryHandler.count=3\""
 
  						if (isMasterBranch()) {
 	                   		try {
-- 
GitLab