I’m making a step template that needs to know the current role. When the step is run as a normal step, Octopus.Tentacle.CurrentDeployment.TargetedRoles contains the role as expected. But when the step is run as a child step, it is blank.
Thanks for getting in touch! I have had some weird behavior while testing this also.
I’ve created a GitHub issue which you can track here: https://github.com/OctopusDeploy/Issues/issues/1170
I will update this thread when it has been released.