Automation · Jenkins
Scripted Pipeline
Cheat sheet · https://pcornel.dk/topic.php?topic=5540
Answer
A scripted pipeline is written in Groovy inside node { } blocks, giving full programming flexibility but less structure and validation than declarative pipelines.
Remember
- Full flexibility.
- Less validation.
- Harder to maintain.
First checks
- node { … } Groovy — scripted
- In-process script approval — sandbox
- Migration plan to declarative — maintainability
Verify in this order
Groovy script → pipeline
Where it usually breaks
Script/input → command/module binding → local/remoting session → request accepted → command result → target object read-back → effective runtime state → workload.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5540