{{define "title"}} {{ with .Build.Summary -}} {{ if eq .Status.String "InfraFailure" }} Infra Failure {{ else if eq .Status.String "Exception" }} Exception {{ else if eq .Status.String "Failure" }} Failed {{ else if eq .Status.String "NotRun" }} Pending {{ else }} {{ .Status.String }} {{ end }} - {{ .ParentLabel }} {{ .Label }} {{- end }} {{end}} {{define "interval"}} {{ if .Started }} ( {{ .Duration | humanDuration }} ) {{ end }} {{end}} {{define "favicon"}} {{end}} {{define "body"}}

{{ if .Build.Summary.ParentLabel }} Builder {{ .Build.Summary.ParentLabel.HTML }} {{ end }} Build {{.Build.Summary.Label.HTML }} {{ if .Build.Summary.Banner }} {{ range .Build.Summary.Banner.OS }} {{.LogoBase.Alt}} {{ end }} {{ range .Build.Summary.Banner.Device }} {{.LogoBase.Alt}} {{ end }} {{ end }}

Results:

{{ with .Build.Summary }}

{{ if .Text }}{{ range .TextBR }}{{ . }} {{ end }} {{ else if eq .Status.String "InfraFailure" }} Internal Failure {{ else if eq .Status.String "Expired" }} Internal Failure - Expired {{ else if eq .Status.String "NotRun" }} Pending {{ else }} {{.Status}} {{ end }}

{{ end }} {{ if .Build.Trigger }} {{ with .Build.Trigger }}

Trigger Info:

{{ if .Project }} {{ end }} {{ if .Commit.Repo }} {{ end }} {{ if .Commit.Branch }} {{ end }} {{ if .Commit.RequestRevision }} {{ end }} {{ if .Commit.Revision }} {{ end }} {{ if .Commit.Changelist }} {{ end }}
Project{{ .Project }}
Repository{{ .Commit.Repo }}
Branch{{ .Commit.Branch }}
Revision{{ .Commit.RequestRevision.HTML }}
Got Revision{{ .Commit.Revision.HTML }}
Patch{{ .Commit.Changelist.HTML }}
{{ end }} {{ end }} {{ if or .Build.Summary.Bot .Build.Summary.Source }}

Execution:

{{ end }} {{ if .Build.Trigger }} {{ if .Build.Trigger.Source }}

Reason:

{{ .Source }}

{{ end }} {{ end }} {{ if or .Build.Components .Build.Summary.SubLink }}

Steps and Logfiles:

Show:
    {{ with .Build.Summary }} {{ if .SubLink }}
  1. {{ template "interval" .ExecutionTime }} Steps
      {{ range .SubLink }} {{ end }}
  2. {{ end }} {{ end }} {{ range .Build.Components }}
  3. {{ template "interval" .ExecutionTime }} {{.Label.HTML}} {{ range .TextBR -}}
    {{- if . -}}{{- . -}}{{- else -}} {{- end -}}
    {{- end }}
      {{ if .MainLink }} {{- if eq .Verbosity.String "Interesting" -}} {{ range .MainLink }} {{ end }} {{ end }} {{- end }} {{ range .SubLink }} {{ end }} {{ if not (or .MainLink .SubLink) }} {{ end }}
  4. {{ end }}
{{ end }}

Build Properties:

{{ range .Build.PropertyGroup }} {{ $name := .GroupName }} {{ range .Property }} {{ end }} {{ end }}
NameValueSource
{{.Key}} {{.Value}} {{$name}}
{{ if .Build.Blame }}

Blamelist:

    {{ range .Build.Blame }}
  1. {{ .AuthorName }} ({{ .AuthorEmail | obfuscateEmail }})
  2. {{ end }}
{{ end }}

Timing:

Create {{ .Build.Summary.PendingTime.Started | localTime "N/A" }}
Start {{ .Build.Summary.ExecutionTime.Started | localTime "N/A" }}
End {{ .Build.Summary.ExecutionTime.Finished | localTime "N/A" }}
Pending {{ if .Build.Summary.PendingTime.Started.IsZero }} N/A {{ else }} {{ .Build.Summary.PendingTime.Duration | humanDuration }} {{ end }}
Execution {{ if .Build.Summary.ExecutionTime.Started.IsZero }} N/A {{ else }} {{ .Build.Summary.ExecutionTime.Duration | humanDuration }} {{ end }}
{{ if .Build.Blame }}

All Changes:

    {{ range .Build.Blame }}
  1. {{.Title}}

    {{ with .Revision }} {{ end }}
    Changed by {{ if .AuthorName }}{{ .AuthorName }} - {{ end }} {{ .AuthorEmail | obfuscateEmail }}
    Changed at {{ .CommitTime | localTime "N/A" }}
    Repository {{ .Repo }}
    Branch {{ .Branch }}
    Revision {{ .HTML }}
    {{ if .Description }}

    Comments

    {{ .Description | formatCommitDesc }}
    {{ end }} {{ if .File }}

    Changed files

      {{ range .File }}
    • {{ . }}
    • {{ end }}
    {{ end }}
  2. {{ end }}
{{ end }}
{{end}}