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

OZG-6327 Revert version in later build phase

parent 4486f07a
No related branches found
No related tags found
No related merge requests found
......@@ -95,7 +95,6 @@ pipeline {
configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
sh 'mvn -pl user-manager-server -s $MAVEN_SETTINGS clean deploy -Dmaven.wagon.http.retryHandler.count=3'
sh "mvn -s $MAVEN_SETTINGS versions:revert"
junit testResults: '**/target/surefire-reports/*.xml', skipPublishingChecks: true
}
}
......@@ -116,6 +115,18 @@ pipeline {
}
}
stage('Revert Version') {
steps {
script {
FAILED_STAGE=env.STAGE_NAME
}
configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
sh 'mvn -s $MAVEN_SETTINGS versions:revert'
}
}
}
stage ('OWASP Dependency-Check Vulnerabilities') {
steps {
dependencyCheck additionalArguments: '''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment