always show latest 10 builds on job page

This commit is contained in:
Rob Vermaas
2011-11-16 10:36:18 -05:00
parent 1395717245
commit f4204df39a
2 changed files with 8 additions and 9 deletions

View File

@ -29,7 +29,7 @@ sub overview : Chained('job') PathPart('') Args(0) {
, '+as' => ["releasename", "buildstatus"], order_by => 'system' })];
$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 => 10 })];
$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']