Chapter 8. Understanding Project Types

In the Jenkins 2 environment, several new project types have been added to provide extended functionality. Many of them leverage Jenkinsfiles, as markers, to automatically create jobs for the user. In this chapter, we’ll look at the most common project types in Jenkins, including these newer ones as well as traditional ones (like Freestyle and Maven projects).

For most of the project types, there are certain common options present on the configuration page. These are in sections such as General, Build, Source Code Management, etc. In the first part of this chapter, we’ll cover those common options. Also, since we are focused on getting up and running with Jenkins 2, we’ll cover the corresponding pipeline functionality where we have an equivalent.

Common Project Options

A number of the project types in Jenkins have configuration pages that are divided into specific sections. These sections can be scrolled to, or selected via tabs at the top of the page. We’ll look at each of the major sections, explain what the options mean, and also look at ways to implement corresponding functionality in pipelines. We’ll break these down based on the tab positions in a Freestyle project. Other types of projects may have some options on different tabs.

General

The General section is where we configure the unique identifying information about the project, such as the description. (The project name will have already been set when the type of project was selected ...

Get Jenkins 2: Up and Running now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.