Details
-
Type:
Improvement
-
Status: Closed (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Component/s: git-client-plugin, git-plugin
-
Labels:None
-
Similar Issues:
Description
I would like to use git lfs and I would like to jenkins, and I would like for jenkins to use its same credentials already configured for git to fetch the git lfs resources. Rather than trying to change the init+fetch pattern, I would like to add a custom behavior to the git plugin that will execute `git lfs pull` after checkout using the same credentials as the fetch command.
It seems that git lfs is the way forward for git repos with large files and I don't see a workaround right now for using git lfs with jenkins, short of sprinkling credentials everywhere so that `git lfs` can be run from the build context which doesn't seem like a good idea.
I am looking into what it would take to add this. Would the maintainers be interested in taking in such a feature?
Attachments
Issue Links
- is duplicated by
-
JENKINS-43158 git-lfs support
-
- Closed
-
- is related to
-
JENKINS-30318 Git plugin breaks usage of Git LFS due to lack of Git Clone use
-
- Closed
-
The "pipeline syntax" link on most pipeline job pages will present a dropdown of pipeline steps. One of those is "checkout". Inside that "checkout" step, you can select git as the source control system, then add the "Additional Behaviour" for Git LFS pull.
If you prefer to read a script example, refer to the Jenkinsfile in my jenkins-bugs repo. That shows an example using GitLFSPull in a pipeline definition.