Auto Deployment to New Environment

We have added a new environment and added a trigger to autodeploy as soon as the machine becomes healthy. However it has not worked. Do triggers work for the first deployment to a new environment?

Hi,

Thanks for getting in touch.

Project Triggers allow you to re-run an existing deployment. ie. You need to have deployed a release at least once to your environment(s), then as new machines come online, that same deployment is re-queued and applied to those new machines.

If you wish Octopus to automatically create your first deployment for a given release, you can use Auto Deploy Overrides to override this default behaviour. Please see the Can I choose a Release that hasn’t been deployed yet section from the auto-eploy FAQ more details.

If you’re unable to create an initial deployment because your machines don’t exist yet, a feature was added in Octopus 3.8.7 to allow deployments to no targets. That allows you to run an initial deployment, then when new machines come online, the Project Triggers will re-run the deployment to the new machines. You can read more details on this feature on our blog post: https://octopus.com/blog/no-target-deployments. This is generally an easier approach over Auto Deploy Overrides, but you can decide what works best for you.

Hope this helps.

Cheers
Mark