Mark's suggestion was a good one. Try to get the easy part working first. If it still does not work, it might be caused by Jenkins calling git via the git.cmd wrapper script. I have heard that recent changes in git plugin are incompatible with the git.cmd wrapper script. You can work around them by calling git.exe directly, but then you have to make arrangements to have the necessary environment variables in Jenkins user's environment. Sorry I haven't got exact details, I just heard some windows developers at work ran into this on their Jenkins.
-- Sami Pete Long <petelon...@gmail.com> kirjoitti 13.5.2012 kello 3.25: > Hi All, > > I going through the “Jenkins – The Definitive Guide” to basically > learn about this tool. > > I am attempting to set up my first Jenkins job by going through the > steps described in the book – Chapter 2 “First Steps With Jenkins”. > > I have gone the few steps and when I finally start the job, I am > encountering the following error :- > > Started by user anonymous > Building in workspace C:\Users\Daddy\.jenkins\workspace\gameoflife- > default > Checkout:gameoflife-default / C:\Users\Daddy\.jenkins\workspace > \gameoflife-default - hudson.remoting.LocalChannel@81b587 > Using strategy: Default > Cloning the remote Git repository > Cloning repository origin > ERROR: Error cloning remote repo 'origin' : Could not clone > g...@github.com:PeteLong/game-of-life.git > hudson.plugins.git.GitException: Could not clone > g...@github.com:PeteLong/game-of-life.git > at hudson.plugins.git.GitAPI.clone(GitAPI.java:245) > at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1121) > at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1063) > at hudson.FilePath.act(FilePath.java:832) > at hudson.FilePath.act(FilePath.java:814) > at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1063) > at hudson.model.AbstractProject.checkout(AbstractProject.java:1218) > at hudson.model.AbstractBuild > $AbstractRunner.checkout(AbstractBuild.java:586) > at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java: > 475) > at hudson.model.Run.run(Run.java:1434) > at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) > at hudson.model.ResourceController.execute(ResourceController.java: > 88) > at hudson.model.Executor.run(Executor.java:239) > Caused by: hudson.plugins.git.GitException: Error performing command: > C:\Program Files\Git\bin\git clone --progress -o origin > g...@github.com:PeteLong/game-of-life.git C:\Users\Daddy\.jenkins > \workspace\gameoflife-default > at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:786) > at hudson.plugins.git.GitAPI.access$000(GitAPI.java:38) > at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:241) > at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:221) > at hudson.FilePath.act(FilePath.java:832) > at hudson.FilePath.act(FilePath.java:814) > at hudson.plugins.git.GitAPI.clone(GitAPI.java:221) > ... 12 more > Caused by: java.lang.InterruptedException > at java.lang.ProcessImpl.waitFor(Native Method) > at hudson.Proc$LocalProc.join(Proc.java:319) > at hudson.Launcher$ProcStarter.join(Launcher.java:345) > at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:767) > ... 18 more > Trying next repository > ERROR: Could not clone repository > FATAL: Could not clone > hudson.plugins.git.GitException: Could not clone > at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1133) > at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1063) > at hudson.FilePath.act(FilePath.java:832) > at hudson.FilePath.act(FilePath.java:814) > at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1063) > at hudson.model.AbstractProject.checkout(AbstractProject.java:1218) > at hudson.model.AbstractBuild > $AbstractRunner.checkout(AbstractBuild.java:586) > at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java: > 475) > at hudson.model.Run.run(Run.java:1434) > at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) > at hudson.model.ResourceController.execute(ResourceController.java: > 88) > at hudson.model.Executor.run(Executor.java:239) > > If I perform the line that appears to be fail > "C:\Program Files\Git\bin\git clone --progress -o origin > g...@github.com:PeteLong/game-of-life.git" > > from the "GitBash" command line, everything is fine. > > I using my PC running windows Vista and I also get the same problem on > my Laptop running Windows 7. > > Any suggestions as to fixing this problem would be appreciated. > > I have googled for a solution but with no luck. > > Thank You > > Pete