File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments