From e7ff6619ae57412cdf37c16712bda4063b8fe721 Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Tue, 2 Jul 2024 18:16:27 +0200 Subject: [PATCH] OZG-5907 update jenkinsfile jar deployment --- Jenkinsfile | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 93cc53e..8749e0e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -65,15 +65,7 @@ pipeline { steps { script { FAILED_STAGE = env.STAGE_NAME - JAR_TAG = generateImageTag('pom.xml') - deployJarFiles(JAR_TAG) - if (env.BRANCH_NAME == 'master') { - deployJarFiles('snapshot-latest') - - } - else if (env.BRANCH_NAME == 'release') { - deployJarFiles('latest') - } + deployJarFiles() } } @@ -264,7 +256,7 @@ Void tagAndPushDockerImage(String imageName, String newTag){ } } -Void deployJarFiles(String jarName){ +Void deployJarFiles(){ configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) { sh 'mvn --no-transfer-progress -s $MAVEN_SETTINGS -DskipTests deploy -Dmaven.wagon.http.retryHandler.count=3' } -- GitLab