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

OZG-6533 add versions:revert in jenkinspipeline

parent aac3dffe
No related branches found
No related tags found
No related merge requests found
...@@ -89,6 +89,7 @@ pipeline { ...@@ -89,6 +89,7 @@ pipeline {
} }
configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) { configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
sh 'mvn --no-transfer-progress -s $MAVEN_SETTINGS -DskipTests deploy -Dmaven.wagon.http.retryHandler.count=3' sh 'mvn --no-transfer-progress -s $MAVEN_SETTINGS -DskipTests deploy -Dmaven.wagon.http.retryHandler.count=3'
} }
} }
} }
...@@ -102,6 +103,7 @@ pipeline { ...@@ -102,6 +103,7 @@ pipeline {
configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) { configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
dir('vorgang-manager-server') { dir('vorgang-manager-server') {
sh 'mvn --no-transfer-progress -s $MAVEN_SETTINGS spring-boot:build-image -DskipTests -Dmaven.wagon.http.retryHandler.count=3' sh 'mvn --no-transfer-progress -s $MAVEN_SETTINGS spring-boot:build-image -DskipTests -Dmaven.wagon.http.retryHandler.count=3'
sh 'mvn -s $MAVEN_SETTINGS versions:revert'
} }
} }
} }
...@@ -111,6 +113,7 @@ pipeline { ...@@ -111,6 +113,7 @@ pipeline {
steps { steps {
script { script {
FAILED_STAGE=env.STAGE_NAME FAILED_STAGE=env.STAGE_NAME
IMAGE_TAG = generateImageTag('pom.xml') IMAGE_TAG = generateImageTag('pom.xml')
tagAndPushDockerImage('vorgang-manager', IMAGE_TAG) tagAndPushDockerImage('vorgang-manager', IMAGE_TAG)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment