I have a git hub repository ABC.git it has the following directories src ,config,env, test. I just want to checkout the src and config folder into my Jenkins workspace.
I am able to checkout the complete repository into my jenkins workspace using the SCM plugin.
command used for checking out complete branch :
checkout([
$class: 'GitSCM',
branches: [[name: '*/master']],
doGenerateSubmoduleConfigurations: false,
extensions: [[$class: 'CleanCheckout']],
submoduleCfg: [],
userRemoteConfigs: [[credentialsId: '<gitCredentials>', url: '<gitRepoURL>']]
])