I\'m trying to set up Jenkins on a Windows Server 2012 machine, and I\'m having a lot of difficulty.
Things I\'ve done:
i
This is how I solved it:
I ran the sysinternals tool psexec to spawn a CMD which is running under the LocalSystem account (same account like jenkins service is running)
PSEXEC -i -s -d CMD
In this cmd prompt I executed the same git command from the workspace directory as the hanging GIT.exe processes do. E.g.
d:\Programs\Jenkins\jobs\jobname\workspace>D:\Programs\Git\bin\git.exe fetch -t ssh+git://gitpub@my.server.com:9360/data/gitpub/myRepository.git +refs/heads/:refs/remotes/origin/
Et voila: I was prompted to enter "yes" to add the SSH key to the known list of known hosts.