From the course: Intermediate Jenkins: Automate, Integrate, and Secure CI/CD Workflows at Scale

Create a pipeline project

Pipelines provide the most efficient way of working with projects in Jenkins. We can use a declarative pipeline to easily capture an entire project configuration. Let's create a project that uses a pipeline to print an all-too-familiar phrase. I'm logged into my Jenkins server, and I trust you have a server you can use to follow along. I'll start by selecting New Item, and I'll give this project a name. How about First Pipeline? And then I'll select the pipeline type. Now I'll select OK. On the Configuration page, I'll select Pipeline to get to the Pipeline section. In the Scripts section, I'll select the pull-down menu to try a sample pipeline and I'll pick Hello World. This creates a sample pipeline that we can use to get started. I'll save this right away. On the Project screen, I'll select Build Now. Now that the pipeline is complete, I'll select the drop-down arrow next to the job and select Pipeline Overview. This shows a visual representation of the pipeline along with the message we were expecting. In the next lesson, let's take a closer look at each part of a pipeline's configuration.

Contents