jenkins the definitive guide

(Jeff_L) #1

First, you need to start the Jenkins server on your target machine. The simplest approach is to run Jenkins
using Java Web Start (see Figure 3.4, “Starting Jenkins using Java Web Start”). Alternatively, you can
do this by downloading Jenkins and running it from the command line, as we discussed earlier:


C:\jenkins> java -jar jenkins.war

This second option is useful if the default Jenkins port (8080) is already being used by another
application. It doesn’t actually matter which port you use—you can change this later.


Figure 3.4. Starting Jenkins using Java Web Start


Once you have Jenkins running, connect to this server and go to the Manage Jenkins screen. Here you
will find an Install as Windows Service button. This will create a Jenkins service on the server that
will automatically start and stop Jenkins in an orderly manner (see Figure 3.5, “Installing Jenkins as a
Windows service”).


Jenkins will prompt you for an installation directory. This will be the Jenkins home directory
(JENKINS_HOME). The default value is the default JENKINS_HOME value: a directory called .jenkins

Free download pdf