You might want to look at the GitSCM Plugin $class: SparseCheckoutPaths. 
This should do what you are asking.

On Friday, June 25, 2021 at 11:15:09 a.m. UTC-4 [email protected] wrote:

> 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!

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9c5e13d7-ccce-4702-95bc-71a0d407e641n%40googlegroups.com.

Reply via email to