I have a script which calls a powershell function, which calls another function which ultimately calls set-octopusvariable.
I would like to access the variable written by set-octopusvariable in the step, but it looks like it doesn’t get written to the octopusparameters until the step finishes.
Is there another way I can access these values in the same step?
Thanks for contacting us. Octopus variables that are set in one step can only be used in following steps due to the transactional nature of step execution.
Instead to access the value in the same step you’ll need to use a local variable.
set-octopusvariable is designed for passing variables along to following steps.
Hope that helps.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.