Git fetch not working from jenkins, working from command line

409 views
Skip to first unread message

Diganta Paladhi

unread,
Feb 22, 2017, 12:54:29 PM2/22/17
to Jenkins Users
Hi Guys,
I am facing this issue with Git plugin version 3.0.5
Any idea how to solve this?
I have tried all possible suggestions, but failed to resolve this :(

17:07:29  > /usr/bin/git rev-parse --verify HEAD # timeout=10
17:07:29 No valid HEAD. Skipping the resetting
17:07:29  > /usr/bin/git clean -fdx # timeout=10
17:07:29 Fetching upstream changes from <git repo>
17:07:29  > /usr/bin/git --version # timeout=10
17:07:29 using GIT_ASKPASS to set credentials 
17:07:29  > /usr/bin/git fetch --tags --progress <git repo> +refs/heads/*:refs/remotes/origin/*
17:07:29 ERROR: Error fetching remote repo 'origin' 17:07:29 hudson.plugins.git.GitException: Failed to fetch from <git repo> 17:07:29 at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:806) 17:07:29 at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1066) 17:07:29 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1097) 17:07:29 at hudson.scm.SCM.checkout(SCM.java:495) 17:07:29 at hudson.model.AbstractProject.checkout(AbstractProject.java:1278) 17:07:29 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604) 17:07:29 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) 17:07:29 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) 17:07:29 at hudson.model.Run.execute(Run.java:1728) 17:07:29 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 17:07:29 at hudson.model.ResourceController.execute(ResourceController.java:98) 17:07:29 at hudson.model.Executor.run(Executor.java:404)

Christopher Orr

unread,
Feb 23, 2017, 5:29:27 AM2/23/17
to jenkins...@googlegroups.com
It looks like you haven't pasted the full error message — usually the lines after that part of the stacktrace indicate why the clone failed.

Regards,
Chris
Reply all
Reply to author
Forward
0 new messages