This page describes how to install Jenkins using a Maven WAR Overlay method.
While Jenkins provides extremely easy installation and execution (e.g. java -jar jenkins.war), sometimes more complicated setups are required. It is very common to want to deploy the jenkins.war into an existing Apache Tomcat installation. This is the exact scenario that will be described here.
You need to create a project hierarchy with the pom.xml and context.xml as shown below. Once this is in place, you need to update the JENKINS_URL to be the URL for your Tomcat instance. Now, the only thing you have to do is run mvn clean package cargo:redeploy and watch the Maven magic.
Skip to end of metadata Go to start of metadata