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

"Execute script on Matrix" not working after upgraing from 0.18.1 to 1.0.0+

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • postbuildscript-plugin
    • None
    • Ubuntu 16.04.5 LTS
      OpenJDK 1.8.0_181
      Jenkins core. v121.3
      Postbuildscript plugin v1.0.0

      I have about 100+ matrix jobs using "Execute Scripts" with "Execute script on Matrix".
      After upgrding the Post-Build-Script plugin from 0.18.1 to 1.0.0 or newer,
      the "Execute script on Matrix" is missing and not working (the step will be executed on both Matrix and axis).

      I saw there are a new Post-Build step named "Execute Scripts on Matrix" with option to select "Execute script on Matrix".

      The upgrade should correctly migrate the previous old configuration with "Execute script on Matrix" to the new job step "Execute Scripts on Matrix".

      or at least provide a transition period that both regular "Execute Scripts" and "Execute Scripts on Matrix" steps could support the options to select "Execute script on Matrix/Axis/both".

        1. Selection_022.png
          Selection_022.png
          13 kB
        2. Selection_023.png
          Selection_023.png
          11 kB
        3. Selection_024.png
          Selection_024.png
          18 kB

          [JENKINS-53691] "Execute script on Matrix" not working after upgraing from 0.18.1 to 1.0.0+

          Daniel Heid added a comment -

          Thanks for submitting this issue. You are absolutely right. Since I needed to split the plugin into to seperate components the migration is more complex than usual. I will see, what I can do.

          Daniel Heid added a comment - Thanks for submitting this issue. You are absolutely right. Since I needed to split the plugin into to seperate components the migration is more complex than usual. I will see, what I can do.

          Daniel Heid added a comment -

          It would be very helpful, if you could please post a config.xml of your Matrix project here.

          Daniel Heid added a comment - It would be very helpful, if you could please post a config.xml of your Matrix project here.

          Daniel Heid added a comment -

          Good news: I added a migration in version 2.8.0, that allows you to migrate the old configurations. But it will print an annoying deprecation warning. Else I cannot ensure, that 0.18.x users will ever use the correct post-build action for matrix projects after migrating.

          I released version 2.8.0 some minutes ago. It will take some hours for the new version to appear in Jenkins. Please install the new version tomorrow and check, if everything works as demanded. I will close the issue for now. Feel free to reopen it, if there is something missing regarding this case.

          Daniel Heid added a comment - Good news: I added a migration in version 2.8.0, that allows you to migrate the old configurations. But it will print an annoying deprecation warning. Else I cannot ensure, that 0.18.x users will ever use the correct post-build action for matrix projects after migrating. I released version 2.8.0 some minutes ago. It will take some hours for the new version to appear in Jenkins. Please install the new version tomorrow and check, if everything works as demanded. I will close the issue for now. Feel free to reopen it, if there is something missing regarding this case.

          Rick Liu added a comment -

          Thank you very much for such a prompt fix!

          Attached my job config.xml when using v0.17 plugin and v2.8.1 plugin.
          The solution works!

          Rick Liu added a comment - Thank you very much for such a prompt fix! Attached my job config.xml when using v0.17 plugin and v2.8.1 plugin. The solution works!

            dheid Daniel Heid
            totoroliu Rick Liu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: