Auto deployments on new release

(S) #1

I am trying to set up a trigger which will automatically deploy the latest release into an environment as soon as the release is available in Octopus.
Been trying to follow the steps in but the deployment never actually kicks off.
I have the events as Machine enabled, Machine found healthy, Machine found to have warnings as in the guide but still nothing happens, I must be missing something?

(Kenneth Bates) #3


Thanks for getting in touch! I suspect you’re after the automatic deployment environment feature which is configurable in your project’s lifecycle (located in Library > Lifecycles > [lifecycle] in the web portal). When adding your first environment to your first phase, you can select Deploy automatically to this environment as soon as the release enters this phase. which will then deploy straight to it once the release is created. I’ve attached a screenshot below to visualize this. :slight_smile:

The following doc includes some additional information.

I hope this helps! Let me know what you think or if you have any further questions moving forward.

Best regards,


(S) #4

Thanks Kenny, that seems to work fine for our simpler Projects but we do have some which are a bit more complicated, i.e. same project can be deployed to different environments and it does contain different codebase and the only way to differentiate is the release description and the auto-deploy will deploy latest version regardless which will not work for us.
Do you have a link to some c# examples of deploying programmatically? I can set something up like this and then make sure only the correct release gets deployed.