This will be useful for the Nixpkgs channel mirror script:
http://hydra.nixos.org/view/nixpkgs/unstable/latest-finished/channel
is the channel containing the latest, consistent, tested set of builds.
ZCTGG25SELGUTOYLG72N2I2OF7YQ6B7CIBPCP5ANMDDD4FIQ3YPQC $c->stash->{project}, $c->stash->{primaryJob}, $c->stash->{jobs});
$c->stash->{project}, $c->stash->{primaryJob}, $c->stash->{jobs}, 0);error($c, "This view set has no successful results yet.") if !defined $latest;$c->res->redirect($c->uri_for($self->action_for("view_view"), $c->req->captures, $latest->id, @args));}sub latest_finished : Chained('view') PathPart('latest-finished') {my ($self, $c, @args) = @_;# Redirect to the latest result in the view in which every build# is successful *and* where the jobset evaluation has finished# completely.my $latest = getLatestSuccessfulViewResult($c->stash->{project}, $c->stash->{primaryJob}, $c->stash->{jobs}, 1);
return $build if getViewResult($build, $jobs)->{status} == 0;
my $result = getViewResult($build, $jobs);next if $result->{status} != 0;if ($finished) {next unless defined $result->{eval};next if $result->{eval}->builds->search({ finished => 0 })->count > 0;}return $build;