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
Branches
Tags
No related merge requests found
...@@ -95,7 +95,6 @@ pipeline { ...@@ -95,7 +95,6 @@ pipeline {
configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) { 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 -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 junit testResults: '**/target/surefire-reports/*.xml', skipPublishingChecks: true
} }
} }
...@@ -116,6 +115,18 @@ pipeline { ...@@ -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') { stage ('OWASP Dependency-Check Vulnerabilities') {
steps { steps {
dependencyCheck additionalArguments: ''' dependencyCheck additionalArguments: '''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment