jenkinsjenkins-pipeline

Restart a Jenkins pipeline and adjust parameters


I have a Jenkins job based on a Jenkinfile. I need to restart the latest job and adjust a parameter or parameters. With plain old Jenkins jobs, I can do it using the "Rebuild Last" option. With Jenkins files, I see "Restart from Stage", "Replay" options but they don't allow to override parameters.

Currently, I have to open a previous run and copy-paste all the parameters to new job execution.

What are possible workarounds?


Solution

  • You can do it with the Rebuilder plugin as well, but for pipelines it's available from build level, not from job level (as it was for freestyle jobs). See this answer.