hydra: show all running builds on job page, in stead of only showing the 'current' builds that are running

This commit is contained in:
Rob Vermaas 2010-10-18 12:06:59 +00:00
parent df921a4fd0
commit 42750364de

View file

@ -31,7 +31,7 @@ sub overview : Chained('job') PathPart('') Args(0) {
$c->stash->{lastBuilds} = [$c->stash->{job}->builds->search({ finished => 1 }, { join => 'resultInfo', '+select' => ["resultInfo.releasename", "resultInfo.buildstatus"] $c->stash->{lastBuilds} = [$c->stash->{job}->builds->search({ finished => 1 }, { join => 'resultInfo', '+select' => ["resultInfo.releasename", "resultInfo.buildstatus"]
, '+as' => ["releasename", "buildstatus"], order_by => 'timestamp DESC', rows => 5 })]; , '+as' => ["releasename", "buildstatus"], order_by => 'timestamp DESC', rows => 5 })];
$c->stash->{runningBuilds} = [$c->stash->{job}->builds->search({iscurrent => 1}, { join => ['schedulingInfo', 'project'] , order_by => ["priority DESC", "timestamp"] $c->stash->{runningBuilds} = [$c->stash->{job}->builds->search({busy => 1}, { join => ['schedulingInfo', 'project'] , order_by => ["priority DESC", "timestamp"]
, '+select' => ['project.enabled', 'schedulingInfo.priority', 'schedulingInfo.disabled', 'schedulingInfo.busy'] , '+select' => ['project.enabled', 'schedulingInfo.priority', 'schedulingInfo.disabled', 'schedulingInfo.busy']
, '+as' => ['enabled', 'priority', 'disabled', 'busy'] })]; , '+as' => ['enabled', 'priority', 'disabled', 'busy'] })];