title: How can I build to repository sub project using Jenkins
body: <p>I have Git repository in which one repository contains two project as below.</p>
  <pre><code>Repository 
     - Project A
     - Project B
  </code></pre>
  <p>My question is how can I build single project (<strong>Project A</strong>) through Jenkins.</p>
  <p>When I use to git clone SSH URL in jenkinsfile it builds to whole repository but I want to build only <strong>Project A</strong>. So, could you please help me how can I do the same?
  Please check below my jenkinsfile code:</p>
  <pre><code> node {
        stage ('Build') {
          git url: 'git@github.com:abc/sample.git'
          withMaven {
            sh &quot;mvn clean install&quot;
          } 
        }    
     }
  </code></pre>