Jenkinsfiles are a relatively new feature in the Jenkins world and they come in two varieties and syntaxes:
- Declarative
- Groovy DSL
The Groovy DSL is very flexible and powerful, but it also facilitates some anti-patterns, so in this recipe we're going to focus on the declarative-style Jenkinsfiles.