Always deploy certain projects at certain times when promoting

We have been using octopus deploy to deploy our products for a couple months now and it has been great but I am looking for a way to automate the deployment of our services. Our windows services are deployed 3 days after our other applications have been deployed but they are all tested at the same time before deploying them from our testing environment to our production staging environment. I want to be able to click deploy for production and have two tasks created, one for the services that will happen 3 days later and one for everything else that will happen immediately. Is there any built in functionality to do this or would I need to use the API to get this kind of control?

Hi Max,

Thanks for getting in touch! Currently we have no method of doing this built into Octopus. This functionality would be possible by having an API script in your initial project, which creates scheduled deployment for the project you wish. I can provide you with some links to some of our pre-made API scripts, and our documentation on this. https://octopus.com/docs/api-and-integration/octopus.client

Some of our scripts: https://github.com/OctopusDeploy/OctopusDeploy-Api/tree/master/Octopus.Client

One of our devs suggested that the following may possibly be of interest to you, however its not exactly what you are after. https://octopusdeploy.uservoice.com/forums/170787-general/suggestions/6599104-recurring-scheduled-deployments

This is something we are currently working on, we have a GitHub issue for it which you can follow if you wish. https://github.com/OctopusDeploy/Issues/issues/3633

Unfortunately you options are a bit limited here sorry to say. If you need any help or run into any issues, you are more than welcome to get in touch, I will do my best to get you up and running.

Let me know what you think.

Best regards,
Daniel

The second and third link seem to be broken. I was able to fix the second link but the third link I have no idea how to change it to work correctly.

The information I was able to get to though was very useful. Thank you for your assistance.

Hi Max,

Thanks for the update! I have just fixed those links, I must have copied them badly.

It sounds like you have this sorted thought! If you have any further questions, please feel free to get in touch. :slight_smile:

Best regards,