You will probably have a better chance of success if you update your credentials plugin to the latest version, register your private key in the "Manage Jenkins", "Manage Credentials" section, then use that registered credential with your job. That has the benefit that the private key is managed by Jenkins and will be used on slaves and masters as needed.
You could also try the same operations without installing git at all, if you use "Manage Jenkins" to add "JGit" as an installation of git. The JGit implementation is not yet at functional parity with the command implementation, but it is pure Java so the use cases which it handles are all handled in Java, without requiring installation of a separate program. I believe that "Jenkins the Definitive Guide" was published before the Credentials plugin was used by the git plugin. Mark Waite On Sun, May 11, 2014 at 6:38 AM, <john.mel...@gmail.com> wrote: > Okay, I am a newbie to Jenkins. > > I'm reading Jenkins: The Definitive > Guide<http://isbn.directory/book/978-1-4493-0535-2>and am attempting to set > up the first example. > > I'm having issues and I've searched and haven't really found an answer. > > So, I am posting here in the hopes that this is a simple configuration > issue. > > I've done the following: > > - Set up Jenkins as a windows service and installed the Git Plugin > - Used Git-Bash to open a window and create the key pair > - Copied the public key to my Git account > - Cloned the Git repository as directed in the book's example > > However, I am seeing the following error message each time Jenkins > attempts to pull changes from the Git repository: > > Started by an SCM change: > > Building in workspace C:\Jenkins\workspace\game-of-life-default > git.exe rev-parse --is-inside-work-tree > Fetching changes from the remote Git repository > git.exe config remote.origin.url g...@github.com:xxxx-xxxxxx/game-of-life.git > Fetching upstream changes from g...@github.com:xxxx-xxxxx/game-of-life.git > git.exe --version > git.exe fetch --tags --progress g...@github.com:xxxx-xxxxx/game-of-life.git > +refs/heads/*:refs/remotes/origin/* > > ERROR: Timeout after 10 minutes > > FATAL: Failed to fetch from g...@github.com:xxxx-xxxxx/game-of-life.git > > hudson.plugins.git.GitException: Failed to fetch from > g...@github.com:xxxx-xxxxx/game-of-life.git > > Finally returning with a status code: -1. > > Any help would be appreciated. > > Thanks > > -- > 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.