{{define "title"}}Builder {{ .Builder.Name }}{{end}} {{define "blamelist"}} {{ if . }} {{ $nb := len . }} {{ if lt $nb 4 }} {{ range $i, $c := . -}} {{- if gt $i 0 }}, {{ end -}} {{- if .Changelist -}} {{- .Changelist.HTML -}} {{- if .AuthorEmail -}} by {{- .AuthorEmail -}} {{- end -}} {{- else if .AuthorEmail -}} ({{ .AuthorEmail }}) {{- else -}} (Unknown Author) {{- end -}} {{- end -}} {{- else -}} ({{ $nb }} changes) {{- end }} {{ end }} {{end}} {{define "body"}} {{ $hasBlamelist := .Builder.HasBlamelist }}

Builder {{.Builder.Name}}

{{ if .Builder.MachinePool }} {{ with .Builder.MachinePool }}

Machine Pool:

Idle{{ .Idle }} {{ if gt .Idle 0 }}
{{ end }}
Busy{{ .Busy }} {{ if gt .Busy 0 }}
{{ end }}
Offline{{ .Offline }} {{ if gt .Offline 0 }}
{{ end }}
{{ .Total }} bots {{ range .Bots }} {{ end }}
NameStatusLast Seen
{{ .Label.HTML }} {{ .Status.String }} {{ .LastSeen | localTime "N/A" }}
{{ end }} {{ end }}
{{ if .Builder.CurrentBuilds }}

Current Builds ({{len .Builder.CurrentBuilds}}):

{{ else }}

No current builds

{{ end }}
{{ if .Builder.PendingBuilds -}}

Pending Build Requests ( {{- if gt .Builder.PendingBuildNum (len .Builder.PendingBuilds) -}} {{ .Builder.PendingBuildNum }} showing {{ end -}}{{- len .Builder.PendingBuilds -}}):

{{ else }}

No Pending Build Requests

{{ end }}
{{- if .Builder.Groups -}}

Builder groups

{{- end }}
{{ if .Builder.FinishedBuilds }}

Recent Builds:

{{ if $hasBlamelist }} {{ end }} {{ range .Builder.FinishedBuilds }} {{ if eq .Status.String "Success" }} {{ else if eq .Status.String "Failure" }} {{ else if eq .Status.String "InfraFailure" }} {{ else if eq .Status.String "Exception" }} {{ else }} {{ end }} {{ if $hasBlamelist }} {{ end }} {{ end }}
Finished Time Run Duration Revision Result Build #ChangesInfo
{{ .ExecutionTime.Finished | localTime "" }} {{ .ExecutionTime.Duration | humanDuration }} {{ .Revision.RevisionHTML }} SuccessFailedInfra FailureException {{ .Status.String }} {{ .Link.HTML }} {{ $nb := len .Blame }} {{ if lt $nb 4 }} {{ range $i, $c := .Blame }} {{ if gt $i 0 }},{{ end }} {{ if .Changelist }} {{ .Changelist.HTML }} {{ if .AuthorEmail }} by {{ .AuthorEmail }} {{ end }} {{ else }} ({{ .AuthorEmail }}) {{ end }} {{ end }} {{ else }} ({{ $nb }} changes) {{ end }} {{ range $i, $value := .Text }} {{ if gt $i 0 }}
{{ end }} {{ . }} {{ end }}
{{ else }}

No Recent Builds

{{ end }}
{{ if .Builder.PrevCursor }}Prev{{ end }} (Show: default 25 50 100 200 ) {{ if .Builder.NextCursor }} Next {{ end }}
{{end}}