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

Support the filter argument in the git plugin

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • git-plugin
    • None

      The git plugin already supports shallow cloning, but for projects with large repos that still need git history, there are much faster options.

      eg. it would be ideal if the git plugin supported the --filter option, such that the options described in the linked articles/videos could be used (eg. --filter=tree:0) which can dramatically reduce cloning speeds of large repos.

      https://www.youtube.com/watch?v=aolI_Rz0ZqY

      https://blog.gitbutler.com/fosdem-git-talk/

      https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/

       

          [JENKINS-72723] Support the filter argument in the git plugin

          Mark Waite added a comment -

          The implementation would need to consider what should be done with command line git implementations that do not support the --filter argument, like command line git 2.20 that is included with Debian 10. Debian 10 won't reach end of life until 2025, so it will continue to be supported by Jenkins until then.

          Mark Waite added a comment - The implementation would need to consider what should be done with command line git implementations that do not support the --filter argument, like command line git 2.20 that is included with Debian 10. Debian 10 won't reach end of life until 2025, so it will continue to be supported by Jenkins until then.

            Unassigned Unassigned
            carbonbased Jeff
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: