jenkinsci / jenkinsci/git-plugin

[JENKINS-71623] Git plugin withCredentials on Windows reports harmless but surprising message

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

Description

When the withCredentials Pipeline step is used with a username GitUsernamePassword credential on Windows using the MinGit distribution, the console log includes an annoying but harmless message that command line git could not register the credential with the Windows Credentials Manager.

The message is:

```
fatal: Unable to persist credentials with the 'wincredman' credential store.

```

The message has been generated since at least January 2023 on Windows agents using the GitUsernamePassword argument to the withCredentials block wrapper. The operations complete as expected, but the fatal in the message may be a source of concern for Jenkins users reading the console log.

---
Originally reported by markewaite, imported from: Git plugin withCredentials on Windows reports harmless but surprising message


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

Raw content of original issue

When the withCredentials Pipeline step is used with a username GitUsernamePassword credential on Windows using the MinGit distribution, the console log includes an annoying but harmless message that command line git could not register the credential with the Windows Credentials Manager.

The message is:


fatal: Unable to persist credentials with the 'wincredman' credential store.


The message has been generated since at least January 2023 on Windows agents using the GitUsernamePassword argument to the withCredentials block wrapper. The operations complete as expected, but the fatal in the message may be a source of concern for Jenkins users reading the console log.

environment

```
Jenkins 2.401.2

Git plugin 5.1.0

MinGit version of command line git 2.41.0.2 and earlier
```

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.