Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Minor
-
Resolution: Done
-
Component/s: git-client-plugin
-
Labels:
-
Environment:Git Client plugin: No such file or directory
-
Similar Issues:
Description
Hi,
I let Windows cleanup some files includeing the tmp files.
Then I hit the following Problem described later.
I am aware of:
"The Git Client plugin uses GIT_ASKPASS and creates a temporary script to execute when git prompts for credentials. " https://wiki.jenkins.io/display/JENKINS/Git+Client+Plugin.
Can I somehow force the plugin to regenerate those temp files like
pass485608812120386475.bat?
Or do you have a other solution on how to fix this problem on my installation?
Regards Stefan
Problem :
Failed to connect to repository : Command "git.exe ls-remote -h https://****Firmware HEAD" returned status code 128:
stdout:
stderr: error: cannot run C:\Users\SVCBUI~1\AppData\Local\Temp\pass485608812120386475.bat: No such file or directory
fatal: could not read Username for 'https://****.com': terminal prompts disabled
Thanks. I don't run with cygwin and I don't test with cygwin. I have enough complexities in the git plugin testing environment that I have not been willing to extend git plugin support to cygwin. Git for Windows is the git officially supported by the git client plugin.
Independent of official support, I think it is a very good idea to change the git client plugin to use Unix style '/' in the GIT_ASKPASS. I'm marking this bug report as 'newbie-friendly' so that someone can experiment with writing tests to check the condition and then changing the value of GIT_ASKPASS and SSH_ASKPASS to use Unix style '/' in the path instead of the Windows style '\' .