Hi everyone, Thanks for the feedback & suggestions.
I have resolved the issue by setting the "Credentials" to "None" in my Jenkins Git plugin configuration. I have credentials on the slave PC along with PuTTY and GIT_SSH set to Putty's plink.exe, and everything works as it should. Why would using my saved credentials cause the Jenkins GIT plugin to ignore the slave PC's GIT_SSH's setting? (As an aside, what am I giving up by not using those stored credentials?) To clarify: - My exact configuration works just fine using the Jenkins GIT plugin for small repos (2 MB or so). But I am encountering my problem when cloning a repo of ~ 20 MB and larger using the Git plugin and credentials. My workgroup has seen issues with cloning failing on larger repos unless we are using PuTTY's plink as our SSH client. When not using credentials, I have no problems. - I think there's a problem with the Jenkins GIT plugins not invoking my GIT_SSH's plink.exe when using Credentials. When the job is hung, and I view the current processes running on my slave machine, I see git's ssh.exe, and not plink.exe, running. The Jenkins console output even says "using GIT_SSH to set credentials". - I get the same error when I set the Jenkins GIT plugin timeout values to something obnoxiously large, like 6 hours. My clone operation is consistently stalling out in the same spot. - This is a clean install of the latest LTS release on a test PC. No prior Jenkins was running on it. - I have set GIT_TRACE = 2, which is showing those trace and run_command messages. - We have some repos that approach 1 GB. Based on other comments in this thread it sounds like JGit may not be the best choice for me at the moment. - I get the same error with either C:\Program Files (x86)\git\cmd\git.exe and C:\Program Files (x86)\git\bin\git.exe defined as the git installation. I see a few GIT_SSH related errors on https://issues.jenkins-ci.org/browse/JENKINS/component/17423 .I run Jenkins as a service and I define my repos in the Jenkins GIT configuration page as git@server:repo.git<mailto:git@server:repo.git>. For what it's worth, though, I also saw this error when running Jenkins via JNLP. If there is anything that I can do to help troubleshoot the issue further, please let me know. Thanks, Terry From: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com> [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Mark Waite Sent: Tuesday, February 11, 2014 6:21 PM To: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com> Subject: Re: Windows git plugin / git client plugin problems My technique is the opposite of Slide's. I always use the git executable in the bin directory. There were issues reported when the git executable in the cmd directory was used instead of using the executable in the bin directory. You might consider a "test drive" of the JGit implementation in your environment to see if it behaves any differently. The JGit implementation does not have all the features of the command line git implementation, but it may be sufficient for your use case. Was this job upgraded from a previous Git plugin version? If so, have you defined the credentials and configured the job to use those credentials? Is there some environment variable that is causing those unexpected "trace:" and "run_command:" strings in the output? I don't see those in my use of command line git on Windows. On Tue, Feb 11, 2014 at 4:59 PM, Slide <slide.o....@gmail.com<mailto:slide.o....@gmail.com>> wrote: What is the path to Git? I use the one in ProgramFiles\Git\cmd instead of ProgramFiles\Git\bin. On Tue, Feb 11, 2014 at 4:49 PM, Dunnigan, Terrence J <terrence.j.dunni...@boeing.com<mailto:terrence.j.dunni...@boeing.com>> wrote: Hi all, I've run into an issue where the latest git plugin / git client plugins time out. It pulls down the files in .git\objects\pack and elsewhere, but nothing beyond the .git folder. Here's my setup: Jenkins server: Jenkins LTS 1.532.1 running on a Windows 7 PC Jenkins GIT client plugin 1.6.2 (also on 1.6.1) Jenkins GIT plugin 2.0.1 Windows 7 slave PC: Jenkins is running as a service using an administrative account Git 1.8.3 is installed, along with PuTTY. GIT_SSH is set to C:\PuTTY\plink.exe Path includes C:\PuTTY Here's the error message once I hit 10 minutes: Started by user Terry Dunnigan Building remotely on slave in workspace C:\hudson_remote\workspace\job name Cloning the remote Git repository Cloning repository g...@myrepo.git<mailto:g...@myrepo.git> Fetching upstream changes from g...@myrepo.git<mailto:g...@myrepo.git> using GIT_SSH to set credentials Fetching upstream changes from g...@myrepo.git<mailto:g...@myrepo.git> using GIT_SSH to set credentials ERROR: Timeout after 10 minutes FATAL<mailto:FATAL>: Failed to fetch from g...@myrepo.git<mailto:g...@myrepo.git> hudson.plugins.git.GitException<http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>: Failed to fetch from g...@myrepo.git<mailto:g...@myrepo.git> at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:625)<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.fetchFrom&entity=method> at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:847)<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.retrieveChanges&entity=method> at hudson.plugins.git.GitSCM.checkout(GitSCM.java:872)<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.checkout&entity=method> at hudson.model.AbstractProject.checkout(AbstractProject.java:1411)<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractProject.checkout&entity=method> at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:652)<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:557)<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.run&entity=method> at hudson.model.Run.execute(Run.java:1665)<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.execute&entity=method> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)<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:246)<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...@myrepo.git<mailto:g...@myrepo.git> +refs/heads/*:refs/remotes/origin/*" returned status code -1: stderr: trace: built-in: git 'fetch' '--tags' '--progress' 'g...@myrepo.git' '+refs/heads/*:refs/remotes/origin/*' trace: run_command: 'C:\Users\me\AppData\Local\Temp\ssh6588671275929067852.bat' 'g...@myrepo.git' 'git-upload-pack '\''myrepo.git'\''' trace: run_command: 'rev-list' '--objects' '--stdin' '--not' '--all' '--quiet' trace: run_command: 'rev-list' '--objects' '--stdin' '--not' '--all' trace: built-in: git 'rev-list' '--objects' '--stdin' '--not' '--all' Any thoughts? Thanks everyone. Terry Dunnigan -- 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<mailto:jenkinsci-users%2bunsubscr...@googlegroups.com>. For more options, visit https://groups.google.com/groups/opt_out. -- Website: http://earl-of-code.com -- 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<mailto:jenkinsci-users%2bunsubscr...@googlegroups.com>. For more options, visit https://groups.google.com/groups/opt_out. -- 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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>. For more options, visit https://groups.google.com/groups/opt_out. -- 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/groups/opt_out.