Jenkins declarative vs scripted pipeline?

IntermediateConceptCI/CD
Answer

Declarative uses the structured pipeline { stages { ... } } syntax with validation, post, when and options. Scripted is free-form Groovy (node { }). Prefer declarative and drop into script { } only when you need logic.

All Real-World Interview questions Roadmap: Interview readiness

More on CI/CD