-
Bug
-
Resolution: Duplicate
-
Major
-
None
when using Bitbucket team project on a big repository, the job start to checkout the whole repository to retrieve the jenkinsfile.
the job failed after 10 minute on timeout.
there are no option to increase timeout / shallow clone / no fetch tag as we can in regular checkout
> git fetch --tags --progress https:/xxx/xxx/xxx.git +refs/heads/master
ERROR: Timeout after 10 minutes
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from https:/xxx/xxx.git
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:803)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1063)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1094)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109)
at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:130)
at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:107)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:232)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:405)
Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress https://xxxx/xxx.git +refs/heads/master" returned status code 143:
- duplicates
-
JENKINS-42518 Provide lightweight checkout capability for bitbucket to avoid repository clone for multi-branch pipeline jobs
- Resolved