Using Git with Jenkins on Windows
<p>I am using Git 2.8.1, Jenkins 1.642.4 and Windows Server 2012 R2 and trying to access a project hosted with Git through https using Git plugin 2.4.4.</p>

<p>After setting my repository URL Jenkins gives me the following error message:</p>

<pre><code>Failed to connect to repository : Could not init C:\Windows\TEMP\hudsonblablabla
</code></pre>

<p>I have found several sources stating that this is due to not pointing Jenkins to the correct git location, <a href="https://stackoverflow.com/questions/29123879/jenkins-with-tomcat-failed-to-connect-to-repository-could-not-init/31905487#31905487">like in this SO question</a> however setting the absolute path to the git location has not fixed this issue for me.</p>

<p>Some of the paths I have already tried without luck:</p>

<pre><code>C:\Program Files\Git\cmd\git
C:\Program Files\Git\cmd\git.exe
C:\Program Files\Git\bin\git
C:\Program Files\Git\bin\git.exe
C:\Program Files\Git\git-cmd
</code></pre>

<p>Am I using the wrong path or is the issue something else?</p>