We've switched from SVN to Git for our repositories which was rather uneventful. The only trouble we now have is that Jenkins refuses to fetch our new Git repositories. Our Git repositories are hosted on Atlassian Stash which is configured as a public readonly http repositories.
I've tried several things, but had no success. The Git repositories fetch properly using Source Tree and Visual Studio 2013.
Stash runs on a Windows 8 computer as a service under the 'Local system' user. I've tried configuring it to run under a local user account that has compression turned off (core.compression 0).
I've tried to use both C:\Program Files (x86)\Git\bin\git.exe
and C:\Program Files (x86)\Git\cmd\git.exe
.
The output that it produces is the following:
Receiving objects: 82% (19700/23879), 106.27 MiB | 6.00 KiB/s
fatal: early EOF
fatal: The remote end hung up unexpectedly
fatal: index-pack failed
error: RPC failed; result=56, HTTP code = 200
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1442)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1230)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:85)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:280)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:645)
... 10 more
Although I've tried with earlier versions of Jenkins and the GIT plugins, it also fails with the latest software versions, namely:
- git version 1.9.4.msysgit.2
- Jenkins 1.588
- GIT client plugin 1.11.1
- GIT plugin 2.2.7