-
Bug
-
Resolution: Won't Fix
-
Major
Jenkins 1.511 (git plugin 1.3.0, git client plugin 1.0.5) doesn't support git < 1.6.2 anymore since older git versions don't support cloning into existing directories (even if empty!):
Last Built Revision: Revision <SHA1> (origin/master) Cloning the remote Git repository Cloning repository <myrepo-url>.git git --version git version 1.5.6.5 ERROR: Error cloning remote repo 'origin' : Could not clone <myrepo-url>.git [...] stderr: fatal: destination directory '/home/jenkins/workspace/<build-workspace>' already exists. at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:773) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.clone(CliGitAPIImpl.java:217) ... 12 more Trying next repository ERROR: Could not clone repository
Something seems to have changed in the build process lately as Jenkins 1.502 doesn't have this problem. It seems the workspace is created before cloning which seemingly wasn't the case in (at least) 1.502.