Jenkins deploying war file to tomcat docker container
<p>I'm trying deploy a WAR file to tomcat docker container.
Here config.xml :</p>

<pre><code> &lt;?xml version='1.0' encoding='UTF-8'?&gt;
&lt;project&gt;
  &lt;actions/&gt;
  &lt;description&gt;&lt;/description&gt;
  &lt;keepDependencies&gt;false&lt;/keepDependencies&gt;
  &lt;properties/&gt;
  &lt;scm class="hudson.plugins.git.GitSCM" plugin="git@2.4.3"&gt;
    &lt;configVersion&gt;2&lt;/configVersion&gt;
    &lt;userRemoteConfigs&gt;
      &lt;hudson.plugins.git.UserRemoteConfig&gt;
        &lt;url&gt;https://github.com/spring-projects/spring-petclinic.git&lt;/url&gt;
      &lt;/hudson.plugins.git.UserRemoteConfig&gt;
    &lt;/userRemoteConfigs&gt;
    &lt;branches&gt;
      &lt;hudson.plugins.git.BranchSpec&gt;
        &lt;name&gt;*/master&lt;/name&gt;
      &lt;/hudson.plugins.git.BranchSpec&gt;
    &lt;/branches&gt;
    &lt;doGenerateSubmoduleConfigurations&gt;false&lt;/doGenerateSubmoduleConfigurations&gt;
    &lt;submoduleCfg class="list"/&gt;
  &lt;/scm&gt;
  &lt;canRoam&gt;true&lt;/canRoam&gt;
  &lt;disabled&gt;false&lt;/disabled&gt;
  &lt;blockBuildWhenDownstreamBuilding&gt;false&lt;/blockBuildWhenDownstreamBuilding&gt;
  &lt;blockBuildWhenUpstreamBuilding&gt;false&lt;/blockBuildWhenUpstreamBuilding&gt;
  &lt;triggers/&gt;
  &lt;concurrentBuild&gt;false&lt;/concurrentBuild&gt;
  &lt;builders&gt;
    &lt;hudson.tasks.Maven&gt;
      &lt;targets&gt;clean package&lt;/targets&gt;
      &lt;mavenName&gt;3.3.9&lt;/mavenName&gt;
      &lt;usePrivateRepository&gt;false&lt;/usePrivateRepository&gt;
      &lt;settings class="jenkins.mvn.DefaultSettingsProvider"/&gt;
      &lt;globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/&gt;
    &lt;/hudson.tasks.Maven&gt;
  &lt;/builders&gt;
  &lt;publishers&gt;
    &lt;hudson.plugins.deploy.DeployPublisher plugin="deploy@1.10"&gt;
      &lt;adapters&gt;
        &lt;hudson.plugins.deploy.tomcat.Tomcat7xAdapter&gt;
          &lt;userName&gt;admin&lt;/userName&gt;
          &lt;passwordScrambled&gt;YWRtaW4=&lt;/passwordScrambled&gt;
          &lt;url&gt;http://localhost:8888&lt;/url&gt;
        &lt;/hudson.plugins.deploy.tomcat.Tomcat7xAdapter&gt;
      &lt;/adapters&gt;
      &lt;contextPath&gt;spring-petclinic&lt;/contextPath&gt;
      &lt;war&gt;target/*.war&lt;/war&gt;
      &lt;onFailure&gt;false&lt;/onFailure&gt;
    &lt;/hudson.plugins.deploy.DeployPublisher&gt;
  &lt;/publishers&gt;
  &lt;buildWrappers/&gt;
&lt;/project&gt;
</code></pre>

<p>Results :</p>

<pre><code>Tests run: 39, Failures: 0, Errors: 0, Skipped: 1

[INFO] 
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ spring-petclinic ---
[INFO] Building jar: /var/lib/jenkins/jobs/deploy2Docker/workspace/target/spring-petclinic-1.4.2.jar
[INFO] 
[INFO] --- spring-boot-maven-plugin:1.4.2.RELEASE:repackage (default) @ spring-petclinic ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 51.388 s
[INFO] Finished at: 2016-12-25T15:52:20+00:00
[INFO] Final Memory: 87M/214M
[INFO] ------------------------------------------------------------------------
Finished: SUCCESS
</code></pre>

<p>The job completed successfully, but docker container wasn't been created.
I checked that the war file is there. </p>

<pre><code>-rw-r--r-- 1 jenkins jenkins 35689865 Dec 25 15:52 /var/lib/jenkins/jobs/deploy2Docker/workspace/target/spring-petclinic-1.4.2.jar
</code></pre>

<p>Anybody can help? What am I missing to make this works ? </p>