Skip to content
Snippets Groups Projects
Commit e7ff6619 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-5907 update jenkinsfile jar deployment

parent fd78f932
No related branches found
No related tags found
No related merge requests found
......@@ -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'
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment