Deployment process
The deployment included the following actions:
Send mail notification
First simple step
Second composite step
Task summary
First simple step — Succeeded
Second composite step — Succeeded
Send an email step — Running
Acquire Packages — Succeeded
Apply Tentacle Retention Policy — Succeeded
Is there a way to write child steps info in mail body like it is written for parent steps?
Thanks for getting in touch! Child steps are referenced in the same way as standalone steps (i.e. Octopus.Action[ChildStepName].Name) so this template should be printing out each child step name. When testing it in my local instance, I get the expected result.
I’d like to dig into it a bit more to see if there’s any specific reason why it’s not giving you the same result. Which Octopus server version are you currently running?
Are you using the exact template as shown in the doc page you’ve linked to? If not, could you provide the full email body you’re using?
I look forward to hearing back and getting to the bottom of this one!
Thanks for following up and clarifying that! Child steps are only available as Octopus.Action parameters, whereas Octopus.Step return only the top level steps (parent steps or steps that don’t have child steps). This means that you’d have to iterate over Octopus.Action to have it include child steps. Giving this a test, I’ve been able to get somewhat close to what this template is doing, and I’d like to hear if this is an acceptable approach for you.