Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-64203

Save original build Cause(s) on pipeline Replay

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • workflow-cps-plugin
    • 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.

            oxygenxo Andrey Babushkin
            oxygenxo Andrey Babushkin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: