O'Reilly logo

Jenkins: The Definitive Guide by John Ferguson Smart

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Multiconfiguration Build Jobs

Multiconfiguration build jobs are an extremely powerful feature of Jenkins. A multiconfiguration build job can be thought of as a parameterized build job that can be automatically run with all the possible combinations of parameters that it can accept. They are particularly useful for tests, where you can test your application using a single build job, but under a wide variety of conditions (browsers, databases, and so forth).

Setting Up a Multiconfiguration Build

To create a new multiconfiguration build job, simply choose this option on the New Job page (see Figure 10-19).

Creating a multiconfiguration build job

Figure 10-19. Creating a multiconfiguration build job

A multiconfiguration build job is just like any other build job, but with one very important additional element: the Configuration Matrix (see Figure 10-20). This is where you define the different configurations that will be used to run your builds.

Adding an axis to a multiconfiguration build

Figure 10-20. Adding an axis to a multiconfiguration build

You can define different axes of configuration options, including running the build job on different slaves or on different JDKs, or providing your own custom properties to the build. For example, in the build jobs discussed earlier, we might want to test our application for different databases and different operating systems. We could ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required