From the course: Intermediate Jenkins: Automate, Integrate, and Secure CI/CD Workflows at Scale
Unlock this course with a free trial
Join today to access over 25,200 courses taught by industry experts.
Use build steps in a pipeline - Jenkins Tutorial
From the course: Intermediate Jenkins: Automate, Integrate, and Secure CI/CD Workflows at Scale
Use build steps in a pipeline
I've created a pipeline job using the pipeline configuration from the exercise files for this lesson. Declarative pipelines start with the word pipeline, followed by curly braces that contain instructions for Jenkins to run. A pipeline configuration has three required sections. An agent section, a stages section, and inside the stages section we're required to have at least one stage. Each stage is required to have at least one step. Let's discuss each of these sections in more detail. The Agent section specifies where the commands in a pipeline will be run. We can specify an agent using Any, Label, Docker Container, or None. If we use Agent Any, we're letting Jenkins know that it can run the pipeline using the first available executor. In systems where Jenkins is running jobs on the controller, this is the agent configuration you would use the most. When we need to be specific about the agent running a pipeline, we can use the label parameter. This is helpful when we need to run a…
Contents
-
-
-
Create a pipeline project1m 10s
-
(Locked)
Use build steps in a pipeline2m 53s
-
(Locked)
Use the pipeline snippet generator2m 13s
-
(Locked)
Use variables in a pipeline2m 54s
-
(Locked)
Parameterize a pipeline4m 9s
-
(Locked)
Use conditional expressions and manual approvals3m 14s
-
(Locked)
Solution: Develop a parameterized pipeline2m 44s
-
-
-
-
-
-