jenkins the definitive guide

(Jeff_L) #1
application in many different environments, with different databases, or even on different build
machines. We will be looking at how to configure multiconfiguration build jobs later on in the
book.

Figure 5.1. Jenkins supports four main types of build jobs


You can also copy an existing job, which is a great way to create a new job that is very similar to an
existing build job, except for a few configuration details.


In this chapter, we will focus on the first two types of build jobs, which are the most commonly used.
We will discuss the others later on. Let’s start with the most flexible option: the freestyle build job.


5.3. Creating a Freestyle Build Job


The freestyle build job is the most flexible and configurable option, and can be used for any type of
project. It is relatively straightforward to set up, and many of the options we configure here also appear
in other build jobs.


5.3.1. General Options


The first section you see when you create a new freestyle job contains general information about the
project, such as a unique name and description, and other information about how and where the build
job should be executed (see Figure 5.2, “Creating a new build job”).

Free download pdf