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
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
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'