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

unable to use jenkinsfile with bitbucket branch source on big repository

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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:

        Attachments

          Issue Links

            Activity

            arieliron ariel levy created issue -
            jamesdumay James Dumay made changes -
            Field Original Value New Value
            Priority Blocker [ 1 ] Major [ 3 ]
            jamesdumay James Dumay made changes -
            Link This issue duplicates JENKINS-42518 [ JENKINS-42518 ]
            jamesdumay James Dumay made changes -
            Resolution Duplicate [ 3 ]
            Status Open [ 1 ] Resolved [ 5 ]

              People

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

                Dates

                Created:
                Updated:
                Resolved: