Reputation: 1
I'm encountering an error when trying to clone a Git repository in Jenkins using the Git plugin. The error message is as follows:
ERROR: Error cloning remote repo 'origin' ERROR: Maximum checkout retry attempts reached, aborting
The error stack trace points to the following Jenkins classes:
at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2848) at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2184) 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:877) at PluginClassLoader for git//hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1221) at PluginClassLoader for git//hudson.plugins.git.GitSCM._checkout(GitSCM.java:1311) at PluginClassLoader for git//hudson.plugins.git.GitSCM.checkout(GitSCM.java:1278
Jenkins Configuration: Jenkins version: [2.492.1] Operating System: [ MAC] Git version: [2.48.1]
Git LFS: The repository uses Git LFS, and I've configured the environment to use Git LFS as well, but the problem still persists.
Post buffer option: I've tried increasing the Git buffer size (git config --global http.postBuffer 524288000), but the issue persists. Shallow clone: Tried shallow cloning with --depth 1, but it did not resolve the issue. Depth option: I've also tried using --depth with different values, but the problem still continues.
Any suggestions on how to troubleshoot this further or resolve the issue would be greatly appreciated.
Upvotes: -1
Views: 24