Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-26830

Git plugin using wrong username for committer different from user running build set in user.name and user.email

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • git-plugin
    • 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

            Unassigned Unassigned
            bretcj7 Bret Askeland
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: