title: SparseCheckout in Jenkinsfile pipeline
body: <p>In a jenkinsfile, I have specified the folderName through <strong>SparseCheckoutPaths</strong> which I want to checkout. But I am getting a whole branch checkout instead.</p>
  
  <pre><code>   checkout([$class: 'GitSCM', 
         branches: [[name: '*/branchName']],
         extensions: [[$class: 'SparseCheckoutPaths', path: 'FolderName']],
         userRemoteConfigs: [[credentialsId: 'someID',
         url: 'git@link.git']]])
  </code></pre>