title: How to build source to image(S2I) in OpenShift but using the directory under .git repo?
body: <p>As the question mentioned,
  I want to build source to image (S2I) from git repo, but I want to build the diretory under git repository.</p>
  <p>For example, I have a git repository name Test(<a href="https://example.com/test.git" rel="nofollow noreferrer">https://example.com/test.git</a>) and I want to build the project projectA under repository Test (such as <a href="https://example.com/test/projectA/" rel="nofollow noreferrer">https://example.com/test/projectA/</a>), how can I set the build command?</p>
  <p>The picture of Test repository(there are 3 project under Test.git)</p>
  <p>--git repo:Test</p>
  <p>-----project A</p>
  <p>-----project B</p>
  <p>-----project C</p>
  <p>Because I search all the internet, I can only see how to build from git repository like below:</p>
  <pre><code>oc new-build registry.access.redhat.com/ubi8/openjdk-11~https://github.com/monodot/simple-camel-spring-boot-app \
  --name=my-demo-app
  </code></pre>
  <p>But there are no example for S2I from the project/directory under repository.</p>