2015-07-11 15:15:18 +00:00
|
|
|
mixin statusBadge(build)
|
|
|
|
if build.status === 'in-progress'
|
|
|
|
span.label.label-info in progress
|
|
|
|
|
|
|
|
if build.status === 'queued'
|
|
|
|
span.label.label-default queued
|
|
|
|
|
|
|
|
if build.status === 'done'
|
|
|
|
span.label.label.sm.label-success done
|
|
|
|
|
|
|
|
if build.status === 'error'
|
|
|
|
span.label.label-danger error
|
|
|
|
|
|
|
|
div.row
|
|
|
|
if this.state.build
|
2015-06-14 15:24:03 +00:00
|
|
|
.col-md-8
|
2015-07-11 15:15:18 +00:00
|
|
|
h1
|
|
|
|
.pull-right(style={fontSize: '22px'})
|
|
|
|
mixin statusBadge(this.state.build)
|
|
|
|
span Build #
|
|
|
|
span= this.state.build.number
|
|
|
|
|
|
|
|
.text-muted(style={marginTop: '-10px'})
|
|
|
|
| Initiated by
|
|
|
|
- var initiator = this.state.build.initiator;
|
|
|
|
if initiator.type === 'user'
|
|
|
|
span user
|
|
|
|
else if initiator.type === 'build'
|
|
|
|
Link(to="project", params={name: initiator.project.name})
|
|
|
|
span= initiator.project.name
|
|
|
|
|
|
|
|
|
| during the
|
|
|
|
|
|
|
|
|
Link(to="build", params={id: initiator.id})
|
|
|
|
span build #
|
|
|
|
span= initiator.number
|
|
|
|
else
|
|
|
|
span= initiator.type
|
|
|
|
|
|
|
|
hr
|
|
|
|
|
|
|
|
.build-view_info
|
|
|
|
if this.state.build.error && this.state.build.error.message
|
|
|
|
.text-center.alert.alert-danger
|
2015-07-12 07:55:10 +00:00
|
|
|
| Error:
|
|
|
|
div= this.state.build.error.message
|
|
|
|
if this.state.build.error.stderr
|
|
|
|
div= this.state.build.error.stderr
|
2015-07-11 15:15:18 +00:00
|
|
|
.row
|
|
|
|
.col-md-6
|
|
|
|
p
|
|
|
|
Scm(scm=this.state.build.project.scm.type)
|
|
|
|
|
|
|
|
|
| Project
|
|
|
|
Link(to="project", params={name: this.state.build.project.name})
|
|
|
|
span= this.state.build.project.name
|
|
|
|
|
|
|
|
p
|
|
|
|
i.fa.fa-fw.fa-clock-o
|
|
|
|
span
|
|
|
|
if this.state.build.startDate
|
|
|
|
span Started at
|
|
|
|
DateTime(date=new Date(this.state.build.startDate))
|
|
|
|
else
|
|
|
|
span Queued at
|
|
|
|
DateTime(date=new Date(this.state.build.createDate))
|
|
|
|
|
|
|
|
if this.state.build.status !== 'in-progress'
|
|
|
|
p
|
|
|
|
i.fa.fa-fw.fa-circle
|
|
|
|
|
|
|
|
|
| Finished at
|
|
|
|
if this.state.build.endDate
|
|
|
|
DateTime(date=new Date(this.state.build.endDate))
|
|
|
|
else
|
|
|
|
| -
|
2015-07-13 21:39:26 +00:00
|
|
|
- var rev = this.state.build.scm && this.state.build.scm.rev || {};
|
2015-07-11 15:15:18 +00:00
|
|
|
.col-md-6
|
|
|
|
p
|
|
|
|
i.fa.fa-fw.fa-user
|
|
|
|
|
|
|
|
|
| Commit author
|
|
|
|
|
|
2015-07-13 21:39:26 +00:00
|
|
|
span= rev.author || '-'
|
2015-07-11 15:15:18 +00:00
|
|
|
p
|
|
|
|
i.fa.fa-fw.fa-code-fork
|
|
|
|
|
|
|
|
|
| Revision
|
|
|
|
|
|
2015-07-13 21:39:26 +00:00
|
|
|
span= rev.id || '-'
|
2015-07-11 15:15:18 +00:00
|
|
|
|
|
|
|
p
|
|
|
|
i.fa.fa-fw.fa-comment-o
|
|
|
|
|
|
|
|
|
| Comment
|
|
|
|
|
|
2015-07-13 21:39:26 +00:00
|
|
|
span= rev.comment || '-'
|
2015-07-11 15:15:18 +00:00
|
|
|
|
|
|
|
h2
|
|
|
|
i.fa.fa-fw.fa-terminal
|
|
|
|
|
|
|
|
|
| Console output
|
|
|
|
.build-view_terminal
|
|
|
|
Terminal(build=this.state.build.id)
|