-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Critical
-
Component/s: bitbucket-branch-source-plugin
-
None
-
Environment:Branch source plugin: cloudbees-bitbucket-branch-source (937.3.10)
Jenkins 2.568.2
We are getting below error after any build/PR is triggered from bitbucket, when we retrigger it manually sometimes it works and sometimes it does not
Â
> git --version # timeout=10
> git --version # 'git version 2.52.0'
using GIT_ASKPASS to set credentials LDAP-BB-AUTH-CREDS (created 28/07/2026)
> git fetch --no-tags --force --progress – bitbucket-url refs/heads/:refs/remotes/origin/ +refs/pull-requests/6780/from:refs/remotes/origin/PR-6780 # timeout=10
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Command "git fetch --no-tags --force --progress – bitbucket-url +refs/heads/:refs/remotes/origin/ +refs/pull-requests/6780/from:refs/remotes/origin/PR-6780" returned status code 128:
stdout:
stderr: fatal: couldn't find remote ref refs/pull-requests/6780/from
at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2852)
at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2193)
at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:638)
at PluginClassLoader for git-client//org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:880)
at PluginClassLoader for git//hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1220)
at PluginClassLoader for git//hudson.plugins.git.GitSCM._checkout(GitSCM.java:1310)
at PluginClassLoader for git//hudson.plugins.git.GitSCM.checkout(GitSCM.java:1277)
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:168)
at PluginClassLoader for workflow-multibranch//org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:148)
at PluginClassLoader for workflow-job//org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:342)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:456)
ERROR: Error cloning remote repo 'origin'
ERROR: Maximum checkout retry attempts reached, aborting
ERROR: Error cloning remote repo 'origin'
ERROR: Maximum checkout retry attempts reached, aborting
Finished: FAILURE
Â