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
.
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
.
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.)
http://server/foo
. Also, this breaks http://server/manager/text/list
that the Deploy plugin depends upon.
webapps/ROOT
to another name; do the deployment via Jenkins by executing a shell script that copies the war file under webapps with the nameROOT.war
. Anyway, I'll leave the question open; it would be nice (and less of a hack) to be able to do this with the Deploy plugin.