-
Bug
-
Resolution: Fixed
-
Major
-
git-plugin-client 1.19.6
git 2.8.4
The main issue appear to be a bad interaction between git-client-plugin and gcmw (Git Credential Manager For Windows):
Gcmw works by using in the config "credential.helper=manager". This means than git will normally get the user and password Gcmw will provide.
But with "core.askpass=true" stuff will not work as expected.The build will fail. Example:
...
> git.exe --version # timeout=10
> git.exe -c core.askpass=true fetch --tags --progress http://*************.git +refs/heads/:refs/remotes/origin/
ERROR: Timeout after 10 minutes
ERROR: Error fetching remote repo 'origin'
.....
What we need is something to deactivate core.askpass=true I think.
Note: Even if there is or there isn't in the Repository Credentials a user defines the result is the same.
Note: Gcmw is https://github.com/Microsoft/Git-Credential-Manager-for-Windows
- is related to
-
JENKINS-25878 Jenkins keeps printing "Enter the passphrase for key: 'ssh<hash>key': " for every build
-
- Closed
-
- mentioned in
-
Page Failed to load
The credentials for Jenkins jobs should be managed within the Jenkins environment. The git credentials manager for Windows is focused on improving the experience for an interactive user.
The documentation of the credentials manager for windows includes instructions to disable prompting from the credentials manager with the environment variable GCM_INTERACTIVE=never.
I've submitted a git client plugin pull request to set GCM_INTERACTIVE=never unless the Jenkins server has the property:
That property will prevent setting GCM_INTERACTIVE=never.