We’re using the email template from http://docs.octopusdeploy.com/display/OD/Email+notifications in our deploys, however I was wondering if there’s a way to show child steps in the emails?
Currently, we just get:
Task summary
- Deployment Notification — Succeeded
- Deploy Site — Succeeded
- Failure Notification — Abandoned
- Sucess Notification — Running
Would like to see something like:
- Deployment Notification — Succeeded
- Deployment — Succeeded
a. Stop Service — Succeeded
b. Remove old version — Succeeded
c. Install new version — Succeeded
d. Start Service — Succeeded - Failure Notification — Abandoned
- Sucess Notification — Running
Code used:
Task summary
-
#{each step in Octopus.Step}
#{if step.Status.Code}
- #{step | HtmlEscape} — #{step.Status.Code}
#{if step.Status.Error}
#{step.Status.Error | HtmlEscape}
#{step.Status.ErrorDetail | HtmlEscape}
#{/if}
#{/if}
#{/each}