title: How to invoke Ant in a Jenkins Groovy Pipeline
body: <p>I have created a Jenkins Pipeline job. In this job I want to do the build using Ant. I have configured the Ant variable in Manage <code>**Jenkins &gt; Global Tool Configuration**</code> as <code>Ant1.9.1= D:\path_to_hybris\hybris\bin\platform\apache-ant-1.9.1</code>. </p>
  
  <p>In a freestyle jenkins Job, I know that the build.xml location can be specified as in the below screenshot: <a href="https://i.stack.imgur.com/26W1R.png" rel="noreferrer"><img src="https://i.stack.imgur.com/26W1R.png" alt="enter image description here"></a></p>
  
  <p>but I am unable to understand how to specify the ant groovy script beyond this point, especially where can we mention the path to build.xml file:</p>
  
  <pre><code>def antHome = tool 'Ant1.9.1'
  ????
  ????
  </code></pre>