title: how to specify the pom.xml path in jenkins pipeline script
body: <p>my maven project looks like below
  <a href="https://i.stack.imgur.com/nmBy5.png" rel="nofollow noreferrer">working dir</a>
  <a href="https://i.stack.imgur.com/18PQB.png" rel="nofollow noreferrer">Jenkins error</a></p>
  
  <p>this is how my script looks like</p>
  
  <pre><code>node {
      stage ('Build') {
          git url: 'https://github.com/rakshitha2/test_proj.git'
  
          def mvnHome = tool 'M3'
  
          bat "${mvnHome}\\bin\\mvn -B install"
      }
  }
  </code></pre>
  
  <p>I have to go inside parent directory and execute maven command in Jenkins pipeline script.
  I tried specifying POM path in MVN command its giving me an error saying "path is unexpected at this time". but the same is working in my local.</p>
  
  <p>I'm new to Jenkins and groovy. kindly help me with this.</p>