Author: rob
Date: Mon Oct 18 12:06:59 2010
New Revision: 24348
URL: https://svn.nixos.org/websvn/nix/?rev=24348&sc=1

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

Modified:
   hydra/trunk/src/lib/Hydra/Controller/Job.pm

Modified: hydra/trunk/src/lib/Hydra/Controller/Job.pm
==============================================================================
--- hydra/trunk/src/lib/Hydra/Controller/Job.pm Mon Oct 18 11:30:44 2010        
(r24347)
+++ hydra/trunk/src/lib/Hydra/Controller/Job.pm Mon Oct 18 12:06:59 2010        
(r24348)
@@ -31,7 +31,7 @@
     $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 })];
 
-    $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']
                                                                                
      , '+as' => ['enabled', 'priority', 'disabled', 'busy']  })];
 
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to