-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
Some plugins, GitLab and GitLab Branch Source for example, when configured to trigger build on Webhook, store data retrieved from payload in build Cause and expose it via build environment variables. Then these variables can be utilized in Jenkinsfile.
You can Rebuild (using the Rebuilder plugin) those pipelines, but you can't Replay them, because of the lack of build Cause needed for plugin to expose the data.
We can copy build's original Cause objects to a new build started by ReplayAction, like Rebuilder plugin does.
Have a possible implementation https://github.com/jenkinsci/workflow-cps-plugin/pull/398