Automation · Jenkins
Declarative Pipeline
Cheat sheet · https://pcornel.dk/topic.php?topic=5539
Answer
A declarative pipeline uses Jenkins' structured syntax — pipeline, agent, stages, steps, post — which is easier to read and validate than scripted pipelines and is the recommended style.
Remember
- Declarative syntax: pipeline, agent, stages, steps, post.
- It is validated before running.
- It is the recommended style.
First checks
- pipeline { agent … stages { … } } — structure
- options { timeout(); disableConcurrentBuilds() } — controls
- post { always/failure } — notifications
Verify in this order
declarative stages → steps → post actions
Where it usually breaks
Commit/input → runner/job → build/test artifact → deployment request → target rollout/reconcile → effective version/config → health/readiness → workload.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5539