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?