Skip to content

Commit df96649

Browse files
authored
release: configure git user (#2777)
1 parent 76a0d5b commit df96649

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.ci/release/Jenkinsfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ pipeline {
4545
credentialsId: 'f6c7695a-671e-4f4f-a331-acdce44ff9ba',
4646
shallow: false
4747
)
48-
dir("${BASE_DIR}") {
49-
setupAPMGitEmail()
50-
}
5148
dir("${BASE_DIR}") {
5249
withEnv(["BRANCH_NAME=${BRANCH_SPECIFIER}"]){
5350
withGitRelease() { // sets up the git release setup (remote branches, current workspace state, ...)
51+
// Set the git user/email to be used, otherwise withGitRelease will pick up the latest
52+
// git committer.
53+
setupAPMGitEmail()
5454
stash(allowEmpty: true, name: 'source', useDefaultExcludes: false)
5555
}
5656
}
@@ -129,6 +129,7 @@ pipeline {
129129
echo "changing project version from '${snapshot_version}' to '${user_release_version}' to prepare release ${user_release_version}."
130130
sh(label: "mavenVersionUpdate", script: "./mvnw --batch-mode release:update-versions -DdevelopmentVersion=${user_release_version}-SNAPSHOT")
131131
sh(script: "git commit -a -m 'Version bump ${user_release_version}'")
132+
sh(label: 'debug git user', script: 'git --no-pager log -1')
132133
gitPush()
133134
}
134135

0 commit comments

Comments
 (0)