I want to set up my maven built web app, to build and deploy as part of my regular job.
The build works fine, however using the container deployment plugin seems unreliable in that a fresh deployment works but redeploying the app fails. The plugin can not deploy when app is already deployed (the war is already in webapps directory). To be clear if I delete the war's and undeploy everthing and then to a jenkins build it works as expected but then subsequently they fail. The error message is :
org.codehaus.cargo.container.tomcat.internal.TomcatManagerException: FAIL - Encountered exception javax.management.RuntimeErrorException: Error invoking method check
Should I instead be deploying as part of the maven build itself, using deploy:deploy and adding a distribution management section ?
Or is their a jenkins setting i am missing ?