1.3 Installation of jenkins on Tomcat
Continuous integration is a process in which all development work is integrated at a predefined time or event and the resulting work is automatically tested and build. The idea is that development errors are identified very early in the process.
ENVIRONMENT
INSTALLATION
Jenkins can Run as a standalone application:
java -jar jenkins.war –httpPort=18080 –ajp13Port=18009
Jenkins should be available under “http://localhost:18080/jenkins/”.
Or deploys in an application server as Tomcat:
Copy Jenkins.war as ROOT.war
Delete all folders in [$TOMCAT_HOME]/webapp
Copy ROOT.war in the webapp folder
Modify the file [$TOMCAT_HOME]/conf/context.xml and add the next line:
<Environment name=”JENKINS_HOME” value=”[path_to_jenkins].jenkins” type=”java.lang.String”/>
Modify the file [$TOMCAT_HOME]/conf/server.xml and in <Connector port=”18080″ add the next parameter URIEncoding=”UTF-8″. Also you can modify the ports if it is required
If you start Tomcat your Jenkins installation should be available under “http://localhost:18080/”.
Tomcat as a service in Windows
Run [$TOMCAT_HOME]/bin/service.bat install
To update the service parameters
C:\> tomcat7 //US//Tomcat7 –DisplayName=”Apache Tomcat 7″ \
C:\> –Description=”Apache Tomcat Server – http://tomcat.apache.org/ “
Last updated
Was this helpful?