Tomcat – Deploying to Tomcat root using Jenkins

deploymentjavaJenkinstomcat

Is there any way to deploy my Java application .war file at root on Tomcat 7 server, using the Deploy plugin for Jenkins?

Currently the app gets deployed at http://server/foo/ if it comes in a file named foo.war.

Best Answer

Overly simple solution for any problem such as this:

Set your appBase for the host container to the path you want. (Make sure to turn off autodeploy, etc.)