Trigger a build from ANY successful build within a project
Hi
I'd like to know if it is possible to have single build that gets triggered when any other build within the same project completes successfully? I know that I can set up a build that acts as a dependency and will build when that specific build has been successful, however, that does not fully meet my needs. Having a job with a dependency like this is ok and does work for me, however, it means I have to create dependency (like snapshot or artifact) build for each build.
I am using Octopus Deploy and when I do a build everything that needs packaging is packaged with OctoPack and thus I can use the Push feature of the Octopus plugin to push all the packages and any with the same version will not be pushed, thus for any packages that are pushed I can automatically create a release and deploy to an initial environment.
What I'd like to have is a single job that listens to all successful builds within a project, trigger a new build from this and in the same way the dependency trigger works take all the artifacts that the original build produced. This way I then have a single build that will do the process I described above.
Is something like this possible?
Many thanks
Please sign in to leave a comment.
Hi Jonathan,
This isn't currently possible as is. The main possibility right now would be to create a configuration template that includes that as a build step, and then configure all of your build configurations within that project to inherit from that template. That way you could share the same push steps among all configurations. While we are currently working on a system to have all configurations within a project to inherit automatically from the same template (which would in turn do the same thing with less effort), this isn't currently available as work is still underway. We would like to have it available for 2017.2, so stay tuned.