Interview Prep/Jenkins/Scripted pipeline, Groovy & CPS

What is "Restart from Stage" and when does it not work?

IntermediateConceptScripted pipeline, Groovy & CPS
Answer

For completed declarative builds, you can rerun from a chosen top-level stage, reusing the earlier stages' results. It does not work for scripted pipelines, for stages nested inside parallel or matrix (you restart the parent), and the workspace is not preserved; stashes are only available if options { preserveStashes(buildCount: 5) } was set. It is good for retrying a failed deploy without rebuilding.

All Jenkins questions Roadmap: Jenkins

More on Scripted pipeline, Groovy & CPS