Skip to content

[JENKINS-70094] Add support for partial clone#1777

Open
serianox wants to merge 10 commits into
jenkinsci:masterfrom
ThalesGroup:add-partial-clone
Open

[JENKINS-70094] Add support for partial clone#1777
serianox wants to merge 10 commits into
jenkinsci:masterfrom
ThalesGroup:add-partial-clone

Conversation

@serianox

Copy link
Copy Markdown

Closes #3771
Adds support of partial clone by providing a filterspec to a repository configuration

  • performed by setting remote..promisor and remote..partialCloneFilter in the clone configuration
  • detect changes requested of the filterspec and perform --refetch as needed
  • revert to full clone if unsupported by the git implementation
  • automatically detect during checkout if the repository is a partial clone and provides credentials if needed

This PR is I think more complete than #1131.

Testing done

Added functional tests

  • test with a filter spec (on jgit, will revert to a test with a full clone)
  • test with credentials
  • test with changed filterspec

Currently being tested in a production server with a GB-sized repository

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

@serianox serianox requested a review from a team as a code owner July 10, 2026 13:09
@github-actions github-actions Bot added the tests Automated test addition or improvement label Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Automated test addition or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[JENKINS-70094] Support blobless clone

1 participant