Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-44680

unable to use jenkinsfile with bitbucket branch source on big repository

      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:

          [JENKINS-44680] unable to use jenkinsfile with bitbucket branch source on big repository

          James Dumay added a comment -

          arieliron could you try creating a multi branch pipeline and setting the timeout instead of doing it via a Team folder?

          James Dumay added a comment - arieliron could you try creating a multi branch pipeline and setting the timeout instead of doing it via a Team folder?

          Michael Neale added a comment -

          Could this be a duplicate of https://issues.jenkins-ci.org/browse/JENKINS-42518 in effect? 

          Michael Neale added a comment - Could this be a duplicate of  https://issues.jenkins-ci.org/browse/JENKINS-42518  in effect? 

          James Dumay added a comment -

          This is a duplicate of JENKINS-42518. Please watch and vote for it instead.

          James Dumay added a comment - This is a duplicate of JENKINS-42518 . Please watch and vote for it instead.

            amuniz Antonio Muñiz
            arieliron ariel levy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: