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

@ -222,6 +222,7 @@ sub bump : Chained('evalChain') PathPart('bump') Args(0) {
# Hydra::Base::Controller::NixChannel needs this.
sub nix : Chained('evalChain') PathPart('channel') CaptureArgs(0) {
my ($self, $c) = @_;
requireLocalStore($c);
$c->stash->{channelName} = $c->stash->{project}->name . "-" . $c->stash->{jobset}->name . "-latest";
$c->stash->{channelBuilds} = $c->stash->{eval}->builds
->search_literal("exists (select 1 from buildproducts where build = build.id and type = 'nix-build')")