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+

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Component/s: postbuildscript-plugin
    • Labels:
      None
    • Environment:
      Ubuntu 16.04.5 LTS
      OpenJDK 1.8.0_181
      Jenkins core. v121.3
      Postbuildscript plugin v1.0.0
    • Similar Issues:

      Description

      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".

        Attachments

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

          Activity

          Hide
          dheid 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.

          Show
          dheid 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.
          Hide
          dheid Daniel Heid added a comment -

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

          Show
          dheid Daniel Heid added a comment - It would be very helpful, if you could please post a config.xml of your Matrix project here.
          Hide
          dheid 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.

          Show
          dheid 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.
          Hide
          totoroliu 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!

          Show
          totoroliu 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!

            People

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

              Dates

              • Created:
                Updated:
                Resolved: