Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@CGaskell
Created November 17, 2016 10:32
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save CGaskell/0f331ea2adaa71b9947b8c8a609e85d1 to your computer and use it in GitHub Desktop.
Save CGaskell/0f331ea2adaa71b9947b8c8a609e85d1 to your computer and use it in GitHub Desktop.
Octopus Deployment Detail Email Template
<html><body style="font-family: arial; font-size: 12px;"><h2>Deployment of #{Octopus.Project.Name} #{Octopus.Release.Number} to #{Octopus.Environment.Name}</h2><p>  <em>Initiated by    #{unless Octopus.Deployment.CreatedBy.DisplayName}#{Octopus.Deployment.CreatedBy.Username}#{/unless}    #{if Octopus.Deployment.CreatedBy.DisplayName}#{Octopus.Deployment.CreatedBy.DisplayName}#{/if}    #{if Octopus.Deployment.CreatedBy.EmailAddress} (<a href="mailto: #{Octopus.Deployment.CreatedBy.EmailAddress}">#{Octopus.Deployment.CreatedBy.EmailAddress}</a>)#{/if}    at #{Octopus.Deployment.Created}</em> <br> <a href="http://[OctoSvrUrl]/app#/projects/#{Octopus.Project.Name}/releases/#{Octopus.Release.Number}">Click here</a> to view the release detail</p>#{if Octopus.Release.Notes}<h3>Release notes</h3><p>#{Octopus.Release.Notes}</p>#{/if}<h3>Deployment process</h3><p>The deployment included the following actions:</p><ul>  #{each action in Octopus.Action}    <li><strong>#{action.Name}</strong> #{if action.Package.NuGetPackageId}&mdash; {action.Package.NuGetPackageId} <em>version #{action.Package.NuGetPackageVersion}#{/if}</em></li>  #{/each}</ul><h4>Task summary</h4><ol>#{each step in Octopus.Step}  #{if step.Status.Code}    <li>#{step | HtmlEscape} &mdash; <strong>#{step.Status.Code}</strong>     #{if step.Status.Error}      <pre>#{step.Status.Error | HtmlEscape}</pre>      <pre>#{step.Status.ErrorDetail | HtmlEscape}</pre>    #{/if}      </li>  #{/if}#{/each}</ol><p>View the <a href="http://[OctoSvrUrl]#{Octopus.Web.DeploymentLink}">detailed deployment log</a>.</p></body></html>
@neilmcalister
Copy link

Great template, thanks

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