title: How to run jenkins pipeline relative to a sub-directory?
body: <p>I have a git repository with 2 modules in it. One is SpringBoot based backend module and another one is VueJS based frontend module.</p>
  
  <pre><code>app-root
    - backend
    - frontend
  </code></pre>
  
  <p>I have a declarative style Jenkinsfile to build my backend module with relevant maven commands. I want to execute all those maven commands from inside <strong>backend</strong> directory.</p>
  
  <p>One option is to use <code>dir("backend") { ....}</code> for all commands separately, which looks ugly to me.</p>
  
  <p>Is there any other option to instruct Jenkins to execute the entire pipeline from inside a sub-directory?</p>