My Profile Photo

Ionut Gavrilut

DevOps Enthusiast | Linux System Administrator | Certified Jenkins Engineer

Partial Checkout from Git with Jenkins

If you have a big repository to clone but you need only few files, you can use Git Sparse Checkout. This will clone entire repo, but will compress the files that you don’t want to use.

To use this feature in Jenkins, at Source Code Management, using Git, you can add Additional Behaviours. Add Sparse Checkout paths and set the paths to the files you need in that Jenkins job.