What is "Replay" and why is it powerful and dangerous?
IntermediateConceptScripted pipeline, Groovy & CPS
Answer
Replay reruns a completed build with an edited Jenkinsfile (and edited untrusted library code) without committing. It is great for debugging pipeline syntax quickly. It is dangerous because anyone with Run/Replay permission can run arbitrary pipeline code using the job's credentials. In production we restrict Replay to admins via the Run/Replay permission and keep real changes in pull requests.
More on Scripted pipeline, Groovy & CPS
What does a scripted pipeline look like and when would you still write one?IntermediateWhat is CPS and why does Jenkins transform pipeline Groovy?AdvancedWhy does `java.io.NotSerializableException` happen in pipelines?AdvancedWhat does `@NonCPS` do and what are its rules?AdvancedWhy do some Groovy closures behave unexpectedly in pipelines, for example `list.each { }` or `sort`?AdvancedWhat is the `script` block in declarative, and what are its limits?Beginner