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

Run the publishers after a matrix (parent) build

    XMLWordPrintable

Details

    Description

      This patch calls the Publishers associated with a matrix build after completing the parent build.

      This is more of an RFC than a patch because it may be that certain publishers do not correctly handle being called from the parent matrix build. Indeed this patch was developed to solve a specific issue in our environment and further development may be needed to make this more generic.

      Specifically, this was needed in order to support the Git plugin's "Push Merges back to origin" feature in the context of matrix builds as this is implemented using a publisher. Without this patch the publisher could only run at the conclusion of every child build which is not very useful for publishers which need to know the result of the parent (e.g. the git plugin should only push if all child builds succeeded).

      Attachments

        Issue Links

          Activity

            There are many Publisher implementations out there, and this change can profoundly impact the way they run, and I'm pretty sure some of them would misbehave. Consequently, I think it's better not to apply this.

            The proper way to address thsi problem is for the Publisher to implement MatrixAggregatable, which allows it to execute at the conclusion of the entire matrix project.

            I'll work on JENKINS-5005 with this approach.

            kohsuke Kohsuke Kawaguchi added a comment - There are many Publisher implementations out there, and this change can profoundly impact the way they run, and I'm pretty sure some of them would misbehave. Consequently, I think it's better not to apply this. The proper way to address thsi problem is for the Publisher to implement MatrixAggregatable, which allows it to execute at the conclusion of the entire matrix project. I'll work on JENKINS-5005 with this approach.

            People

              Unassigned Unassigned
              pcc pcc
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: