From the course: Jenkins Essential Training
Unlock the full course today
Join today to access over 23,400 courses taught by industry experts.
Create a declarative pipeline - Jenkins Tutorial
From the course: Jenkins Essential Training
Create a declarative pipeline
- [Instructor] Now that you've seen a Jenkins pipeline, let's go over the pipeline syntax and the parts of a pipeline, specifically stages and steps. Jenkins supports two pipeline formats, scripted and declarative. Scripted pipelines start with the word node. Declarative pipelines start with the word pipeline. Both are followed by curly braces that contain instructions for Jenkins to run. Scripted pipelines use a domain-specific language or DSL based on Groovy, which is a scripting language for the Java virtual machine. Declarative pipelines are an evolution of DSL pipelines. The declarative syntax was developed to more easily capture the complete configuration of a project as code. For the rest of this course, we'll be using the declarative format. A declarative 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â¦
Contents
-
-
-
-
Create a pipeline project1m 14s
-
(Locked)
Create a declarative pipeline4m 38s
-
(Locked)
Use the pipeline Snippet Generator4m 24s
-
(Locked)
Use variables in a pipeline5m 8s
-
(Locked)
Parameterize a pipeline4m 48s
-
(Locked)
Use conditional expressions and manual approvals4m 31s
-
(Locked)
Challenge: Develop a parameterized pipeline2m 15s
-
(Locked)
Solution: Develop a parameterized pipeline10m 7s
-
-
-
-
-
-