jenkinsci / jenkinsci/git-plugin

[JENKINS-43563] Git plugin does not set user in pipeline

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

Description

It's been noted in other issues (JENKINS-35230) that the Git plugin does not export its environment variables when used with a pipeline job. In addition, the plugin does not set user.name and user.email, as it does in traditional jobs, meaning that any attempts to commit to the repository from within a pipeline fail with "tell me who you are".

It would be useful to have the environment variables available, but even without them, the plugin should be able to set the Git config as it performs checkout.

---
Originally reported by chrylis, imported from: Git plugin does not set user in pipeline


  • status: Open
  • priority: Major
  • component(s): git-plugin
  • resolution: Unresolved
  • votes: 17
  • watchers: 23
  • imported: 2025-12-02

Raw content of original issue

It's been noted in other issues (JENKINS-35230) that the Git plugin does not export its environment variables when used with a pipeline job. In addition, the plugin does not set user.name and user.email, as it does in traditional jobs, meaning that any attempts to commit to the repository from within a pipeline fail with "tell me who you are".

It would be useful to have the environment variables available, but even without them, the plugin should be able to set the Git config as it performs checkout.

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.