forked from lix-project/hydra
This commit is contained in:
parent
9e4b029285
commit
ba7b94a852
|
@ -125,8 +125,8 @@ sub download : Chained('build') PathPart {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
sub contents : Chained('build') PathPart {
|
sub contents : Chained('build') PathPart Args(1) {
|
||||||
my ($self, $c, $productnr, @path) = @_;
|
my ($self, $c, $productnr) = @_;
|
||||||
|
|
||||||
my $product = $c->stash->{build}->buildproducts->find({productnr => $productnr});
|
my $product = $c->stash->{build}->buildproducts->find({productnr => $productnr});
|
||||||
notFound($c, "Build doesn't have a product $productnr.") if !defined $product;
|
notFound($c, "Build doesn't have a product $productnr.") if !defined $product;
|
||||||
|
|
|
@ -224,7 +224,7 @@ sub release :Local {
|
||||||
my $primaryBuild = $project->builds->find($releaseId,
|
my $primaryBuild = $project->builds->find($releaseId,
|
||||||
{ join => 'resultInfo', '+select' => ["resultInfo.releasename"], '+as' => ["releasename"] });
|
{ join => 'resultInfo', '+select' => ["resultInfo.releasename"], '+as' => ["releasename"] });
|
||||||
error($c, "Release $releaseId doesn't exist.") if !defined $primaryBuild;
|
error($c, "Release $releaseId doesn't exist.") if !defined $primaryBuild;
|
||||||
|
|
||||||
$c->stash->{release} = getRelease($primaryBuild, $jobs);
|
$c->stash->{release} = getRelease($primaryBuild, $jobs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,8 @@
|
||||||
|
|
||||||
<h1>Release <tt>[% releaseName %]</tt></h1>
|
<h1>Release <tt>[% releaseName %]</tt></h1>
|
||||||
|
|
||||||
|
<p><em>Released on [% INCLUDE renderDateTime timestamp = release.timestamp %].</em></p>
|
||||||
|
|
||||||
[% IF release.status == 1 %]
|
[% IF release.status == 1 %]
|
||||||
<p class="error">This is a failed release. One of its jobs has failed. See below for details.</p>
|
<p class="error">This is a failed release. One of its jobs has failed. See below for details.</p>
|
||||||
[% ELSIF release.status == 2 %]
|
[% ELSIF release.status == 2 %]
|
||||||
|
|
Loading…
Reference in a new issue