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.

          Ricardo added a comment -

          Debian 10 EOF was June 30th, 2024. I guess Debian 10 support can be dropped.

           

          See https://wiki.debian.org/LTS/

          Ricardo added a comment - Debian 10 EOF was June 30th, 2024. I guess Debian 10 support can be dropped.   See https://wiki.debian.org/LTS/

          Mark Waite added a comment -

          Debian 10 EOF was June 30th, 2024. I guess Debian 10 support can be dropped.

          Thanks. Yes, Debian 10 support was dropped when Debian 10 reached end of life, per the Linux support policy.

          The oldest command line git version currently supported by the git plugin is now 2.25 as supported by Ubuntu 20.04. Ubuntu 20.04 will reach end of life 31 May 2025.

          After 31 May 2025, the oldest command line git version supported by the git plugin will be 2.30 as supported by Debian 11. Debian 11 will reach end of life 31 Aug 2026.

          After 31 Aug 2026, the oldest command line git version supported by the git plugin will be 2.34 as supported by Ubuntu 22.04. Ubuntu 22.04 will reach end of life in April 2027.

          Mark Waite added a comment - Debian 10 EOF was June 30th, 2024. I guess Debian 10 support can be dropped. Thanks. Yes, Debian 10 support was dropped when Debian 10 reached end of life, per the Linux support policy . The oldest command line git version currently supported by the git plugin is now 2.25 as supported by Ubuntu 20.04. Ubuntu 20.04 will reach end of life 31 May 2025. After 31 May 2025, the oldest command line git version supported by the git plugin will be 2.30 as supported by Debian 11. Debian 11 will reach end of life 31 Aug 2026. After 31 Aug 2026, the oldest command line git version supported by the git plugin will be 2.34 as supported by Ubuntu 22.04. Ubuntu 22.04 will reach end of life in April 2027.

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

              Created:
              Updated: