Created
November 1, 2016 13:52
-
-
Save Dalmirog-zz/a7bc9c97d70ac8fa26adfa8fd2ed5693 to your computer and use it in GitHub Desktop.
Octopus email with log link for failed steps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style type="text/css"> | |
body{ | |
font-family: 'Segoe UI'; | |
font-size: 14px; | |
} | |
.bold { | |
font-weight: bold; | |
} | |
</style> | |
</head> | |
<body> | |
Octopus release #{Octopus.Release.Number} of project #{Octopus.Project.Name} failed while deploying to #{Octopus.Environment.Name}. | |
<br/><br/> | |
The deploy was started by #{Octopus.Deployment.CreatedBy.Username}, on #{Octopus.Deployment.Created}. | |
<br/><br/> | |
<span class="bold">Task Summary</span> | |
<br /><br /> | |
<ul> | |
#{each step in Octopus.Step} | |
#{if step.Name} | |
<li>#{step.Name} - <span class="bold">#{step.Status.Code}</span> | |
#{if step.Status.Error} | |
<p style="color: red;">#{step.Status.Error | HtmlEscape}</p> | |
You can check the full error in <a href="#{Octopus.Web.BaseUrl}/app#/tasks/#{Octopus.Task.Id}/raw">the deployment raw log</a> | |
#{/if} | |
</li> | |
#{/if} | |
#{/each} | |
</ul> | |
<br/> | |
View the <a href="http://ord-devtfs1:8088#{Octopus.Web.DeploymentLink}">detailed deployment log</a> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment