-
Bug
-
Resolution: Unresolved
-
Major
-
Controller:
Windows Server 2019 (1809)
Java: 17.0.14+7-LTS, Microsoft-10800295
Jenkins Version 2.479.3
Git Plugin: 4.10.3
Git client plugin: 4.7.0
git version 2.49.0.windows.1
When doing large (4,7GB) repository clone on the controller side we get the exception visible on the code pane. The clone on the controller side is needed for the Pipeline job type (Jenkins file). The issue is only happening on the controller side. Agents clones are working without issues on other job types (e.g. Frestyle).
We use reference repository feature, and do not expect that we are facing any timeout related issue here.
The error does not occur once we limit refspec to one or few branches. We have lots of branches (little over 2k). Strangely, when doing the same operations manually on the server (same server, same user account), git is not returning any errors and the `git fetch` operation is successful.
Checked the release notes of the plugin, but I have not found anything related to the issue described.
The recommended git tool is: git.exeusing credential ****Wiping out workspace first.Cloning the remote Git repositoryAvoid fetching tagsCloning repository <REPOURL> > git.exe init C:\Sources\Job@script\8ea19a52dbc789f10f7cf0b663b949ce2b7f4032ecfa961ea88f6bdda9dbb89f # timeout=10Using reference repository: C:\reference-sources\repo.gitFetching upstream changes from <REPOURL> > git.exe --version # timeout=10 > git --version # 'git version 2.49.0.windows.1'using GIT_ASKPASS to set credentials > git.exe fetch --no-tags --force --progress -- <REPOURL> +refs/heads/*:refs/remotes/origin/* # timeout=30ERROR: Error cloning remote repo 'origin'hudson.plugins.git.GitException: Command "git.exe fetch --no-tags --force --progress -- <REPOURL> +refs/heads/*:refs/remotes/origin/*" returned status code 1:stdout: stderr: remote: Azure Repos remote: remote: Found 757 objects to send. (157 ms) Receiving objects: 0% (1/757)Receiving objects: 1% (8/757)Receiving objects: 2% (16/757)Receiving objects: 3% (23/757)Receiving objects: 4% (31/757) *** REDACTED FOR BREVITY *** * [new branch] ver/24.1.1 -> origin/ver/24.1.1 * [new branch] ver/25.1.1 -> origin/ver/25.1.1 * [new branch] ver/25.2 -> origin/ver/25.2 at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2846) at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2185) at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:635) at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:871) at PluginClassLoader for git//hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1224) at PluginClassLoader for git//hudson.plugins.git.GitSCM.checkout(GitSCM.java:1302) at PluginClassLoader for workflow-scm-step//org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:136) at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:167) at PluginClassLoader for workflow-cps//org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:73) at PluginClassLoader for workflow-job//org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:319) at hudson.model.ResourceController.execute(ResourceController.java:101) at hudson.model.Executor.run(Executor.java:445)ERROR: Error cloning remote repo 'origin'ERROR: Maximum checkout retry attempts reached, abortingERROR: Error cloning remote repo 'origin'ERROR: Maximum checkout retry attempts reached, abortingFinished: FAILURE