Usually a timeout in calls to git are due to missing credentials
information.  In your case, that doesn't seem to be the root problem, since
I can view the contents of that repository without credentials.  If you
want to experiment with it, you could create a credential for that github
repository.

If you don't need to push back to the repository from the Jenkins job, you
could use the faster and lighter (read-only) git protocol by using "git://
github.com/jeffrey-a-schmitz/game-of-life.git" instead of "g...@github.com:
jeffrey-a-schmitz/game-of-life.git".

If neither of those work, you could try the https protocol, "
https://github.com/jeffrey-a-schmitz/game-of-life.git";.

Thanks,
Mark Waite


On Sat, Mar 29, 2014 at 8:19 AM, Jeff Schmitz <netbrack...@gmail.com> wrote:

> Still a newbie, I've moved on to a PC running windows 7 and Java 7.  I'm 
> trying to build the example in the Jenkins Definitive Guide book, and am 
> getting the below exception.  I am able to clone the remote repository from 
> the Git Bash command line:
>
>
> git clone g...@github.com:*<username>*/game-of-life.git
>
>
>  so the network connection is there and working.  I Googled for jenkins 
> return status code of -1 and got nothing, so hoping someone here may have an 
> idea.  Note that I'm not behind a proxy wall so don't have any proxy config 
> setup...
>
>
> Building in workspace C:\.jenkins\workspace\gameoflife-default
> Fetching changes from the remote Git repository
> Fetching upstream changes from 
> g...@github.com:jeffrey-a-schmitz/game-of-life.git
> ERROR: Timeout after 10 minutesFATAL 
> <http://stacktrace.jenkins-ci.org/search?query=FATAL>: Failed to fetch from 
> g...@github.com:jeffrey-a-schmitz/game-of-life.githudson.plugins.git.GitException
>  
> <http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>:
>  Failed to fetch from g...@github.com:jeffrey-a-schmitz/game-of-life.git
>       at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:621) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.fetchFrom&entity=method>
>       at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:853) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.retrieveChanges&entity=method>
>       at hudson.plugins.git.GitSCM.checkout(GitSCM.java:878) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.checkout&entity=method>
>       at hudson.model.AbstractProject.checkout(AbstractProject.java:1320) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractProject.checkout&entity=method>
>       at 
> hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:609)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout&entity=method>
>       at 
> jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) 
> <http://stacktrace.jenkins-ci.org/search/?query=jenkins.scm.SCMCheckoutStrategy.checkout&entity=method>
>       at 
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:518) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.run&entity=method>
>       at hudson.model.Run.execute(Run.java:1688) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.execute&entity=method>
>       at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.FreeStyleBuild.run&entity=method>
>       at hudson.model.ResourceController.execute(ResourceController.java:88) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method>
>       at hudson.model.Executor.run(Executor.java:231) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method>
> Caused by: hudson.plugins.git.GitException 
> <http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>:
>  Command "git fetch --tags --progress 
> g...@github.com:jeffrey-a-schmitz/game-of-life.git 
> +refs/heads/*:refs/remotes/origin/*" returned status code -1:
> stdout:
> stderr:
>       at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1192)
>       at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1062)
>       at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:89)
>       at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:222)
>       at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:619)
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Thanks!
Mark Waite

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to