Unable to connect to to the git repository, can any one please suggest what is wrong with the configuration

41 views
Skip to first unread message

bharat Joshi

unread,
May 16, 2017, 2:11:57 AM5/16/17
to jenkins...@googlegroups.com

I am getting below exception while trying to fetch the files from the git Repo 
Building in workspace C:\Program Files (x86)\Jenkins\workspace\Git Example
 > C:\Program Files\Git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > C:\Program Files\Git\bin\git.exe config remote.origin.url https://git.etb.tieto.com/xxxxxxxxxx/xxxxx.git # timeout=10
Fetching upstream changes from https://git.etb.tieto.com/xxxxxxx/xxxxxx.git
 > C:\Program Files\Git\bin\git.exe --version # timeout=10
using GIT_ASKPASS to set credentials 
 > C:\Program Files\Git\bin\git.exe fetch --tags --progress https://git.etb.tieto.com/xxxxx/xxxxx.git +refs/heads/*:refs/remotes/origin/*
ERROR: Timeout after 10 minutes
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from https://git.etb.tieto.com/xxxxxx/xxxxx.git
	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:809)
	at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1076)
	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1107)
	at hudson.scm.SCM.checkout(SCM.java:496)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1281)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
	at hudson.model.Run.execute(Run.java:1728)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:405)
Caused by: hudson.plugins.git.GitException: Command "C:\Program Files\Git\bin\git.exe fetch --tags --progress https://git.etb.tieto.com/xxxxxx/xxxxx.git +refs/heads/*:refs/remotes/origin/*" returned status code -1:
stdout: 
stderr: 
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1877)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1596)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:348)
	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:807)
	... 11 more
ERROR: null
Finished: FAILURE

Victor Martinez

unread,
May 16, 2017, 2:17:55 AM5/16/17
to Jenkins Users
Hi there,

As far as I see there is a error trace

ERROR: Timeout after 10 minutes


What does it mean? Default cloning/git operations within the Git Plugin for jenkins is about 10 minutes. Therefore, if there is a network latency or the git repo is massive then you might need to tune/tweak it accordingly.

How long does it take to clone that repo manually? 

Cheers

Ramanathan Muthaiah

unread,
May 17, 2017, 3:17:19 AM5/17/17
to Jenkins Users
Adding to Victor's response, you may want to explore additional options available for checkout and cloning.


C:\Program Files\Git\bin\git.exe fetch --tags --progress https://git.etb.tieto.com/xxxxx/xxxxx.git +refs/heads/*:refs/remotes/origin/*
ERROR
: Timeout after 10 minutes
ERROR: Error fetching remote repo 'origin'


You should also evaluate if the git operations have to pass thru' proxy to complete repo checkout or cloning.

/Ram
Reply all
Reply to author
Forward
0 new messages