Interview Prep/Jenkins/Scripted pipeline, Groovy & CPS

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.

All Jenkins questions Roadmap: Jenkins

More on Scripted pipeline, Groovy & CPS