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

Allow order of post build tasks to be specified

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Component/s: core
    • Labels:
      None
    • Similar Issues:

      Description

      In my builds I have SCP and deploy to container. But the problem is when configured the SCP is executed first and the deploy is executed. There is no way in UI to ask one task to be executed after another. I manually copy the configuration for SCP before the deploy as for remote deployments I need to SCP before executing deployment.

        Attachments

          Issue Links

            Activity

            Hide
            gbois Gregory Boissinot added a comment - - edited

            Did you try the PostBuildScript Jenkins plugin (https://wiki.jenkins-ci.org/display/JENKINS/PostBuildScript+Plugin)?
            Thanks

            Show
            gbois Gregory Boissinot added a comment - - edited Did you try the PostBuildScript Jenkins plugin ( https://wiki.jenkins-ci.org/display/JENKINS/PostBuildScript+Plugin)? Thanks
            Hide
            jacob_robertson Jacob Robertson added a comment -

            I'm voting for this, but I also think there is an opportunity to do a little more while digging into the refactor that this would take. I've looked into doing this in a plugin, and it's been pretty messy.

            • Allow us to re-order tasks
            • Allow us to enable/disable steps without deleting them (some take a lot of configuration, and deleting in order to disable for just one build is a hassle)
            • Nice to have - allow us to add a step more than once. Some plugins are not architected to perform itself multiple times even though it would make sense. In other words, rather than each plugin having to handle adding multiple instances of it's own configuration, it would be easier for plugin developers to simply provide a flag saying whether or not that plugin should be allowed to be added to the job multiple times, and Jenkins does the rest for them.
            • Nice to have - free style project could get even free-er by allowing us to perform build steps and then post-build steps, and then some more build steps, etc. I know we could do multiple jobs, but if we have a job that could (for example), run maven, then ftp, then a batch command, and then ftp again...
            Show
            jacob_robertson Jacob Robertson added a comment - I'm voting for this, but I also think there is an opportunity to do a little more while digging into the refactor that this would take. I've looked into doing this in a plugin, and it's been pretty messy. Allow us to re-order tasks Allow us to enable/disable steps without deleting them (some take a lot of configuration, and deleting in order to disable for just one build is a hassle) Nice to have - allow us to add a step more than once. Some plugins are not architected to perform itself multiple times even though it would make sense. In other words, rather than each plugin having to handle adding multiple instances of it's own configuration, it would be easier for plugin developers to simply provide a flag saying whether or not that plugin should be allowed to be added to the job multiple times, and Jenkins does the rest for them. Nice to have - free style project could get even free-er by allowing us to perform build steps and then post-build steps, and then some more build steps, etc. I know we could do multiple jobs, but if we have a job that could (for example), run maven, then ftp, then a batch command, and then ftp again...
            Hide
            drulli Ulli Hafner added a comment -

            Please vote for JENKINS-7408.

            Show
            drulli Ulli Hafner added a comment - Please vote for JENKINS-7408 .

              People

              • Assignee:
                Unassigned
                Reporter:
                namanjpatel Naman Patel
              • Votes:
                3 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: