Is it possible to use Set-OctopusVariable
so that I don’t need to know the step name that created it in order to access it?
E.g. if I have step “Deploy Package” and within that step I call Set-OctopusVariable -name "MyVar" -value "foo"
. If I want to access this value in subsequent steps I need to use the syntax $OctopusParameters["Octopus.Action[Deploy Package].Output.MyVar"]
.
Is it possible to somehow call Set-OctopusVariable but at a project/release level? Which would then enable me to use $OctopusParameters["Octopus.Action.Output.MyVar"]
to access the value in subsequent steps?