Runbook - Variable loop step templates

Hi,

I wan’t to create a step templates which will loop through a set of variables to disable and stop a service. Is this possible. Screenshot below of what I’d like to set the variable as with the different values but no scope.

Hi Daniel,

Thanks for getting in touch!

It wouldn’t be possible to do this with that method. If there are multiple variable values that Octopus can choose from, it will pick a single value and stick with it.

You could perhaps enter all the values within the same value with a separator and have your script create an array using the separator to differentiate between values.
e.g.

Otherwise, you would need separate variables for each one.

Regards,
Paul

Thanks Paul,

That makes sense, I’ll split the values by commas.

Thanks,

Dan

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.