Deploying the Hudson web application to Tomcat can be as easy as copying the hudson-3.0.1.war
file to the ${TOMCAT_HOME}/webapps
directory. This uses the automatic deployment feature of Tomcat which, by default, uses part of the WAR filename to the left of .war
as the context part of the URL. So our web address would be:
http://localhost:8080/hudson-3.0.1/
We want to get rid of the Hudson version number in the URL because this is kind of ugly. In order to change the context of the Hudson web application, we will explicitly define the context of the Hudson web application by creating the directory ${TOMCAT_HOME}/conf/Catalina/localhost
and creating the file hudson.xml
in this directory. We will store the Hudson WAR file in the ${HOME}/hudson/ directory
on Linux and the C:\hudson
directory on Windows. The contents of the hudson.xml
file are:
<Context path="/hudson" docBase="/home/meinholz/hudson/hudson-3.0.1.war" reloadable="false"> <...