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

Allow post build script actions to run before other post-build actions

    Details

    • Similar Issues:

      Description

      Currently, the PostBuildScript Plugin runs a set of actions only after all other post-build actions, even when it is placed before other post-build actions using the Jenkins UI.

      It would be very useful to be able to run actions before other post-build actions too. For example, I would like to run a script that produces artifacts that I would like to archive. This is currently impossible with this plugin, since the PostBuildScript actions necessarily run after the artifact archiving.

        Attachments

          Activity

          Hide
          gbois Gregory Boissinot added a comment -

          PostBuildScript plugin is an old plugin.
          It enables you to run scripts after all post build actions.
          However, from latest Jenkins versions, you are able to choose the post build actions order (directly provided by the Jenkins core).
          Therefore, it can be meet your needs.

          Show
          gbois Gregory Boissinot added a comment - PostBuildScript plugin is an old plugin. It enables you to run scripts after all post build actions. However, from latest Jenkins versions, you are able to choose the post build actions order (directly provided by the Jenkins core). Therefore, it can be meet your needs.
          Hide
          zepedro Jose Pedro Correia added a comment -

          Well, the problem is exactly that the order of the post-build actions is not respected by this plugin.

          For example, say I have two post-build actions: archiving artifacts and a PostBuildScript action. Even if I put the PostBuildScript action BEFORE the artifact archival, when I run a build the PostBuildScript action is executed AFTER artifacts are archived. Plus it will move ITSELF to the end of the post-build actions.

          In my case this is important because my PostBuildScript action generates some artifacts that I want to archive, but currently this is impossible.

          P.S. - Why do you call this an old plugin if the last release was less than two months ago? Is there a more recent alternative? I've found the 'Post build task' plugin, but it is less powerful.

          Show
          zepedro Jose Pedro Correia added a comment - Well, the problem is exactly that the order of the post-build actions is not respected by this plugin. For example, say I have two post-build actions: archiving artifacts and a PostBuildScript action. Even if I put the PostBuildScript action BEFORE the artifact archival, when I run a build the PostBuildScript action is executed AFTER artifacts are archived. Plus it will move ITSELF to the end of the post-build actions. In my case this is important because my PostBuildScript action generates some artifacts that I want to archive, but currently this is impossible. P.S. - Why do you call this an old plugin if the last release was less than two months ago? Is there a more recent alternative? I've found the 'Post build task' plugin, but it is less powerful.

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              zepedro Jose Pedro Correia
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: