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

Postbuild script plugin not respecting order in Post-build Action

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      The Postbuildscript plugin alters the order of post-build actions when executed.

      Steps to reproduce :

      • On a matrix configuration project
      • Add a post build action of Postbuildscript
      • Configure it to invoke an ant script (In my case the ant script is creating a file I want to add as an artifact)
      • Add a second post build action e.g. Archive the artifacts
      • Save the configuration with the post build script being first in order
      • Run the job
      • The archive the artifacts build step will occur first
      • Re-open the job configuration and the post build action script will have moved from being the first.

        Attachments

          Activity

          Hide
          bstick12 Brendan Nolan added a comment -

          This seems to be due to the PostBuildScriptListener which is putting any Post Build publishers to the end of the publishers list. No documentation as to why this might have been necessary. I've removed this and re-build locally and the configuration order is now respected.

          Show
          bstick12 Brendan Nolan added a comment - This seems to be due to the PostBuildScriptListener which is putting any Post Build publishers to the end of the publishers list. No documentation as to why this might have been necessary. I've removed this and re-build locally and the configuration order is now respected.
          Hide
          gbois Gregory Boissinot added a comment -

          Fixed with version 0.14.

          Show
          gbois Gregory Boissinot added a comment - Fixed with version 0.14.

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              bstick12 Brendan Nolan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: