Skip to content

Instantly share code, notes, and snippets.

@nblumhardt
Created July 31, 2014 04:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nblumhardt/f617760cd80c0465150f to your computer and use it in GitHub Desktop.
Save nblumhardt/f617760cd80c0465150f to your computer and use it in GitHub Desktop.
Showing step summary in a deployment email with Octopus Deploy
<h3>Task summary:</h3>
<ol>
#{each step in Octopus.Step}
<li>#{step.Name | HtmlEscape} &mdash; <strong>#{step.Status.Code}</strong> #{step.Status.Error | HtmlEscape}
#{if step.Status.ErrorDetail}
<pre>#{step.Status.ErrorDetail | HtmlEscape}</pre>
#{/if}
</li>
#{/each}
</ol>
@piers7
Copy link

piers7 commented Aug 20, 2014

Doesn't work for me on Octopus 2.4 - I get the code fragments returned as-is in the failure email :-(

'Field is bound' and 'Body is HTML' are checked. Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment