GitHub Plugin Checkout Specific Folder

12 views
Skip to first unread message

eric....@gmail.com

unread,
Jun 25, 2021, 11:15:09 AM6/25/21
to Jenkins Users
Hi!  In a nutshell, I'm cloning for builds, not doing any polling or such.  I clear my workspace then check out my repository.  I'd like to do the same but just grab a specific folder.  I'm guessing this would be done in my branch specifier.  As it stands now, for this particular checkout operation, it's always going to be the master branch, so that's all I'm passing for this attribute is master.  Is there a way to change that to say master/FolderName to just get that specific folder?  If so, what's the format to do so?  Thanks!

the.n...@gmail.com

unread,
Jun 25, 2021, 6:04:14 PM6/25/21
to Jenkins Users
You might want to look at the GitSCM Plugin $class: SparseCheckoutPaths. This should do what you are asking.
Reply all
Reply to author
Forward
0 new messages