-
Bug
-
Resolution: Unresolved
-
Critical
-
None
Using Git Plugin 2.3.4.
When choosing GIT for source control system and specifying the git url with http and no username, when the plugin runs it sets the committer to a different user than the author and the one running the jenkins build.
Setup:
Jenkins build with Git.
Executing Nant build script - this script has <exec> commands to call git for "git add ." and "git commit -m "Build Number" --author "svcClairviaBuild" and "git push origin Fixes"
When the git plugin is enabled for the repo the final "push" commit to the remote repo always shows the wrong user but will show the author as the one specified.
Jenkins is running as a service with the "svcClairviaBuild" user.
Here is the commit message on the server: *MS030441 is not the committer why is this showing up?
git config global -l = user.name=svcClairviaBuild user.email=svcClairviaBuild@johndoe.com
BUILD:8.4.2.0-1179
5a2a7bae5cBrowse code
svcClairviaBuild authored 3 minutes ago *ms030441* committed 3 minutes ago
I'm reasonably confident this is a configuration error, not a bug in the git plugin. Could you answer the following questions to further explore it:
I assume the output of the first command will include user.name=ms030441 and the output of the second and third commands will include at least one line containing ms030441.
If the output contains no entries for user.name or user.email, then the plugin is using defaults. You can set the defaults for the account on that slave with a build step 'git config user.name="Your Name"', then confirm with the "git config --list" build step that the setting was preserved.