jenkinsci / jenkinsci/git-plugin

[JENKINS-26830] Git plugin using wrong username for committer different from user running build set in user.name and user.email

Open
#2,598 5 comments 0 reactions 0 assignees View on GitHub
component:git-plugin imported-jira-issue priority:critical resolution:unresolved
Dominant language
Java
Stars
694
Forks
1.1k
Avg merge
1h 29m
Merged PRs (30d)
3

Description

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 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

---
Originally reported by bretcj7, imported from: Git plugin using wrong username for committer different from user running build set in user.name and user.email


  • status: Open
  • priority: Critical
  • component(s): git-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 3
  • imported: 2025-12-02

Raw content of original issue

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.