Checking specific folders when git on Jenkins
The accepted answer is outdated...
As of version 2.1.0 of Jenkins-Git plugin this is supported: https://issues.jenkins-ci.org/browse/JENKINS-21809
You will need Git version 1.7.0+ which added the sparse checkout functionality.
If you want to do a sparse-checkout yourself you can have a look at https://gist.github.com/sumardi/5559896
git doesnt support that nor jenkins plugin.
you can see the link below for more info: