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

Save original build Cause(s) on pipeline Replay

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          oxygenxo Andrey Babushkin added a comment -
          Show
          oxygenxo Andrey Babushkin added a comment - Have a possible implementation  https://github.com/jenkinsci/workflow-cps-plugin/pull/398

            People

            Assignee:
            oxygenxo Andrey Babushkin
            Reporter:
            oxygenxo Andrey Babushkin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: