Disable channels on binary cached based Hydra instances

This commit is contained in:
Eelco Dolstra
2016-03-02 15:08:53 +01:00
parent f09b92e289
commit a74251af2b
7 changed files with 15 additions and 0 deletions

View File

@ -148,6 +148,7 @@ sub channels_tab : Chained('jobsetChain') PathPart('channels-tab') Args(0) {
# Hydra::Base::Controller::ListBuilds needs this.
sub get_builds : Chained('jobsetChain') PathPart('') CaptureArgs(0) {
my ($self, $c) = @_;
requireLocalStore($c);
$c->stash->{allBuilds} = $c->stash->{jobset}->builds;
$c->stash->{latestSucceeded} = $c->model('DB')->resultset('LatestSucceededForJobset')
->search({}, {bind => [$c->stash->{project}->name, $c->stash->{jobset}->name]});