Wrap project ver in dir for jenkins release job
@@ -97,6 +97,7 @@ pipeline {
}
stage('Review project version') {
steps {
+ dir("${BASE_DIR}"){
script {
def ver = mvnVersion(showQualifiers: true)
def should_continue = input(message: "Current version is ${ver}", parameters: [
@@ -117,7 +118,7 @@ pipeline {
]
]
)
- sh(name: "mavenVersionUpdate", script: "mvn --batch-mode release:update-versions -DdevelopmentVersion=${new_version}")
+ sh(name: "mavenVersionUpdate", script: "./mvnw --batch-mode release:update-versions -DdevelopmentVersion=${new_version}")
withGitRelease() {
sh(script: "git commit -a -m 'Version bump'")
gitPush()
@@ -128,6 +129,7 @@ pipeline {
}
}
}
+ }
stage('Wait on internal CI') {
steps {
input(message: "Start the release job on the internal CI. Click 'Proceed' once the job has succeeded or click 'Abort' if the release has failed and then manually undo the release.")
