Why is the Pipeline Replay option missing?

1 minute readKnowledge base

Issue

I am unable to see the Pipeline Replay option in the controller UI.

Resolution

If the Pipeline is defined in the UI, ensure that the Pipeline job has the Use Groovy Sandbox option checked.

When the Use Groovy Sandbox is disabled, the Pipeline Replay option will only be available for users with the Overall/Administer permission.

We recommend enabling the Use Groovy Sandbox option for all Pipeline jobs, for more details, see Pipeline - Script Security.

If a Pipeline is defined via SCM, the Use Groovy Sandbox option is always enabled.
If your controller has Pipeline: Groovy plugin version which is older than version 3773.v505e0052522c, users would require the Overall/RunScripts permission to allow them to use the replay feature for Pipeline jobs which had the Use Groovy Sandbox option un-checked. With version 3773.v505e0052522c, the plugin changed so that Overall/Administer permission is required, as the RunScripts permission is deprecated: https://github.com/jenkinsci/workflow-cps-plugin/pull/768

Tested product/plugin versions