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

Support matrix aggregation with ProxyPublisher

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      Jenkins 1.599
      Groovy Postbuild 2.2
    • Similar Issues:

      Description

      "Run also for matrix parent" with groovy-postbuild doesn't work when called via template-project plugin.
      This is caused as ProxyPublisher doesn't supporr MatrixAggregatable and doesn't trigger aggregation processes of publishers.


      (original post)

      Would it be possible to have Groovy Postbuild to only run the script on matrix parent?

      I have a groovy script I want to run once after all matrix configurations have been triggered and completed.

        Attachments

          Issue Links

            Activity

            Hide
            djviking Sverre Moe added a comment -

            I have hope for a fix to be included within an early 1.5.x bug release. I myself have no experience in programming Jenkins plugins, but if no one picks up this soon, then I might try to fix it myself.

            Show
            djviking Sverre Moe added a comment - I have hope for a fix to be included within an early 1.5.x bug release. I myself have no experience in programming Jenkins plugins, but if no one picks up this soon, then I might try to fix it myself.
            Hide
            djviking Sverre Moe added a comment -

            My hope of quick resolution is fading. I'm currently swamped, so is there anyone else who could fix this issue?

            Show
            djviking Sverre Moe added a comment - My hope of quick resolution is fading. I'm currently swamped, so is there anyone else who could fix this issue?
            Hide
            djviking Sverre Moe added a comment -

            I have cloned the project from GitHub, and implemented a fix, but have not tested it. Nor am I 100% sure it is correct. I have looked at some examples of MatrixAggregatable at GitHub.

            https://github.com/DJViking/template-project-plugin/commit/f74c0d6b11160eb5762315d712e7fbba1ed036a1

            Show
            djviking Sverre Moe added a comment - I have cloned the project from GitHub, and implemented a fix, but have not tested it. Nor am I 100% sure it is correct. I have looked at some examples of MatrixAggregatable at GitHub. https://github.com/DJViking/template-project-plugin/commit/f74c0d6b11160eb5762315d712e7fbba1ed036a1
            Hide
            djviking Sverre Moe added a comment -

            Updated commit with fix for this issue. Taken inspiration from FlexiblePublish. Thanks to ikedam for his assistance.
            https://github.com/DJViking/template-project-plugin/commit/13a0169562db32f90b0e48e135ca5d7cb60f1d76

            I will go through the code some more, add some logging in the ProxyMatrixAggregator and then submit a Pull Request.

            Show
            djviking Sverre Moe added a comment - Updated commit with fix for this issue. Taken inspiration from FlexiblePublish. Thanks to ikedam for his assistance. https://github.com/DJViking/template-project-plugin/commit/13a0169562db32f90b0e48e135ca5d7cb60f1d76 I will go through the code some more, add some logging in the ProxyMatrixAggregator and then submit a Pull Request.
            Show
            djviking Sverre Moe added a comment - Pull Request: https://github.com/jenkinsci/template-project-plugin/pull/26

              People

              • Assignee:
                Unassigned
                Reporter:
                djviking Sverre Moe
              • Votes:
                2 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated: