Jenkins2 Pipeline: deploy on tomcat
<p>I'm a newbie on Jenkins Pipelines. I wrote this small Groovy script from pulling from git and compiling.</p>

<pre><code>node('master') {
  def workspace = pwd()

  stage 'Git pull'
  git branch: 'develop', 
  credentialsId: 'Cred_xxxx', 
  url: 'https://xxxx/yyyy.git'

  stage 'Builing'
  def mvnHome = tool name: 'Maven3', type: 'hudson.tasks.Maven$MavenInstallation'
  sh "cd ${workspace}/tlt/; ${mvnHome}/bin/mvn install -Pdevelopment"
  sh "cd ${workspace}"
}
</code></pre>

<p>Now I would like to deploy on Tomcat7 the file <code>tlt/target/tlt.war</code>. 
The previous approach was to fill the "Deploy war/ear to container" plugin. 
Now, I have no idea how to do this with Groovy.</p>

<p>Thanks<br>
Riccardo </p>