I think you may want to use the Git read only URL.

As an example, by repo "check_git.git" has three different URL's available from 
github:

g...@github.com:MarkEWaite/check_git.git (ssh / read + write)

https://markewa...@github.com/MarkEWaite/check_git.git (https / read + write)

git://github.com/MarkEWaite/check_git.git (read only)


Try the read only URL as first preference.  That avoids needing an ssh 
connection with the required key configuration.

Mark Waite



>________________________________
> From: Pete Long <petelon...@gmail.com>
>To: Jenkins Users <jenkinsci-users@googlegroups.com> 
>Sent: Saturday, May 12, 2012 6:25 PM
>Subject: Starting First Job
> 
>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
>
>
>

Reply via email to