title: automated deploy of war/ear build file is not working on jenkins
body: <p>Automation of WAR/EAR deployment using jenkins on tomcat is not working
  my build and post build actions is as follows:</p>
  
  <p>Build
  Invoke Ant</p>
  
  <p>Ant version : Default</p>
  
  <p>target : buildall packageall testall deploy undeploy</p>
  
  <p>build file : project-bare/build.xml</p>
  
  <p>properties :</p>
  
  <pre><code>build.artifact=${BUILD_ARTIFACT}
  build.tag=${BUILD_TAG}
  artifact.dir=${WORKSPACE}/${ARTIFACT_DIR}
  build.file.dir=${WORKSPACE}/${BUILD_FILE_DIR}
  url=${DB_URL}
  user=${DB_USER}
  server.name=${SERVER_NAME} 
  server.user=${SERVER_USER}
  tomcat.init=${TOMCAT_INIT} 
  tomcat.dir=${TOMCAT_DIR}
  </code></pre>
  
  <p>post build actions (plug-in):</p>
  
  <p>Deploy war/ear to a container</p>
  
  <pre><code>        WAR/EAR files : project.war
          context path  : project
          container     : tomcat7.x
  
                  manager user name : username
                  manager password  : password
                  tomcat url        : http://my url:8080
  </code></pre>
  
  <p>it is showing build is successful but if i go to the server to see the latest deployed war file it is showing the old version,so that means it is not deploying it.
  please help !!</p>