Interview Prep/Jenkins/Declarative pipeline syntax

What is the difference between pipeline-level and stage-level `options`?

IntermediateConceptDeclarative pipeline syntax
Answer

Pipeline-level options apply to the whole run (buildDiscarder, disableConcurrentBuilds, durabilityHint are pipeline-only). Stage-level options support a subset: timeout, retry, timestamps, skipDefaultCheckout, lock. A stage-level timeout includes time spent waiting for the agent and for input, so put a timeout on approval stages to avoid builds waiting forever.

All Jenkins questions Roadmap: Jenkins

More on Declarative pipeline syntax