Run a script across multiple environments

Hi Octopus Team,

I know we can run a script against multiple environments by using Script Console, however, to avoid any necessary manual tasks, is there a way to run a script across multiple environments without using Script Console?

Kind Regards,

Jian

Hi Jian,

Thanks for getting in touch! Using the script console in Octopus will only ever let you run a script on a single environment at a time. The best way to run a script on multiple environments simultaneously would be to create a project with a script step, then change it to use a Lifecycle with each environment in the same phase.

If you would like some more information on Lifecycles, you can check out the following documentation: http://docs.octopus.com/display/OD/Lifecycles

If you have any questions about this, I would be happy to answer them. :slight_smile:

Best regards,
Daniel

Hi Daniel,

Thanks for the reply, I agree with your suggestion. Will give it a try.

Hi Jian,

No worries, I’m glad I could help.

Best regards,
Daniel