Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .ci/release/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ pipeline {
credentialsId: 'f6c7695a-671e-4f4f-a331-acdce44ff9ba',
shallow: false
)
dir("${BASE_DIR}") {
setupAPMGitEmail()
}
dir("${BASE_DIR}") {
withEnv(["BRANCH_NAME=${BRANCH_SPECIFIER}"]){
withGitRelease() { // sets up the git release setup (remote branches, current workspace state, ...)
// Set the git user/email to be used, otherwise withGitRelease will pick up the latest
// git committer.
setupAPMGitEmail()
stash(allowEmpty: true, name: 'source', useDefaultExcludes: false)
}
}
Expand Down Expand Up @@ -129,6 +129,7 @@ pipeline {
echo "changing project version from '${snapshot_version}' to '${user_release_version}' to prepare release ${user_release_version}."
sh(label: "mavenVersionUpdate", script: "./mvnw --batch-mode release:update-versions -DdevelopmentVersion=${user_release_version}-SNAPSHOT")
sh(script: "git commit -a -m 'Version bump ${user_release_version}'")
sh(label: 'debug git user', script: 'git --no-pager log -1')
gitPush()
}

Expand Down