When I gave the local repository path in Git under the Jenkins, I am getting the error message:
Failed to connect to repository :
Command "C:\Program Files\Git\bin\git.exe ls-remote -h E:/New folder (2) HEAD" returned status code 128:
stdout:
stderr: fatal: bad config file line 1 in C:/\Users\usr1/.gitconfig
How can I troubleshoot this issue?
You need to be sure what
%HOME%(which isn’t defined by default) refers to (before launching Jenkins):C:/\Users\usr1might not be an accessible path, whileC:\Users\usr1might.As mention in this blog post: