Is it possible to target different environment through the "Deploy a Release" feature?

Hi !

While using the “Deploy a Release” feature of Octopus, we’re wondering if the following is possible:

Deploy a project MAIN PROJECT to environment A
-MAIN PROJECT has a step to deploy a release of SUB PROJECT to environment B

Thanks!
Guillaume

Hi Guillaume,

Thanks for getting in touch! Unfortunately it’s not possible to configure the sub project to target a different environment here. The release of the project deployed via the Deploy a Release step has to target the same environment as the one the parent project is deploying to.

However there might be a different solution to achieve what you’re after. Would you be willing to expand on what’s requiring the sub project to deploy to a different environment at this time?

I look forward to hearing back!

Best regards,

Kenny

Hi Kenneth,

Thanks for your reply!

We found a way to do it by running a PowerShell script that calls Octo.exe.
By calling Octo.exe, we were able to deploy SUB PROJECT to environment B as part of the deployment of MAIN PROJECT to environment A.

We can therefore mark this request as resolved.

Regards,
Guillaume

Hi Guillaume,

Thanks for following up and letting me know your solution! Great to hear that works as you’re needing. Don’t hesitate to reach out if you have any questions or concerns going forward!

Best regards,

Kenny