Runbook - Variable loop step templates


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.

Otherwise, you would need separate variables for each one.


Thanks Paul,

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



1 Like

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