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

Multibranch pipeline does a full clone of the repository for any new branch

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None

      I have a multibranch pipeline using github SCM.

      Each time a build is triggered for a new branch, the job is doing a full clone of the repository (~ 3min in our case).

      However, if the branch already exists, the job only does a fetch of the repository (~5s in our case).

      We are using a single node (aka jenkins master). 

      Is there any solution without setting a reference repository up?

      For exemple, something like a git repo cache could exists on each node, and this repo is duplicated in the workspace before checking out the latest changes.

            aaronjwhiteside Aaron Whiteside
            mboillod manuel boillod
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: