The Pipeline Syntax has two forms (https://jenkins.io/doc/book/pipeline/syntax/#declarative-pipeline):
- Declarative Pipeline
- Scripted Pipeline
The difference between the two forms is that the Declarative Pipeline syntax is meant to be a simpler syntax than the Scripted Pipeline. The Scripted Pipeline syntax is a DSL, that follows the Groovy programming language semantics.