forked from lix-project/hydra
Add jobset/job menus on buid log pages
This commit is contained in:
parent
66b8c1a9e0
commit
8dcef7702f
|
@ -31,6 +31,8 @@ sub buildChain :Chained('/') :PathPart('build') :CaptureArgs(1) {
|
||||||
$c->stash->{mappers} = [$c->model('DB::UriRevMapper')->all];
|
$c->stash->{mappers} = [$c->model('DB::UriRevMapper')->all];
|
||||||
|
|
||||||
$c->stash->{project} = $c->stash->{build}->project;
|
$c->stash->{project} = $c->stash->{build}->project;
|
||||||
|
$c->stash->{jobset} = $c->stash->{build}->jobset;
|
||||||
|
$c->stash->{job} = $c->stash->{build}->job;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -74,8 +76,8 @@ sub build_GET {
|
||||||
if ($build->finished) {
|
if ($build->finished) {
|
||||||
$c->stash->{prevBuilds} = [$c->model('DB::Builds')->search(
|
$c->stash->{prevBuilds} = [$c->model('DB::Builds')->search(
|
||||||
{ project => $c->stash->{project}->name
|
{ project => $c->stash->{project}->name
|
||||||
, jobset => $c->stash->{build}->jobset->name
|
, jobset => $c->stash->{jobset}->name
|
||||||
, job => $c->stash->{build}->job->name
|
, job => $c->stash->{job}->name
|
||||||
, 'me.system' => $build->system
|
, 'me.system' => $build->system
|
||||||
, finished => 1
|
, finished => 1
|
||||||
, buildstatus => 0
|
, buildstatus => 0
|
||||||
|
@ -405,8 +407,8 @@ sub history_graphs : Chained('buildChain') PathPart('history-graphs') {
|
||||||
if ($build->finished) {
|
if ($build->finished) {
|
||||||
$c->stash->{prevBuilds} = [$c->model('DB::Builds')->search(
|
$c->stash->{prevBuilds} = [$c->model('DB::Builds')->search(
|
||||||
{ project => $c->stash->{project}->name
|
{ project => $c->stash->{project}->name
|
||||||
, jobset => $c->stash->{build}->jobset->name
|
, jobset => $c->stash->{jobset}->name
|
||||||
, job => $c->stash->{build}->job->name
|
, job => $c->stash->{job}->name
|
||||||
, 'me.system' => $build->system
|
, 'me.system' => $build->system
|
||||||
, finished => 1
|
, finished => 1
|
||||||
, buildstatus => 0
|
, buildstatus => 0
|
||||||
|
|
|
@ -4,9 +4,6 @@
|
||||||
[% USE HTML %]
|
[% USE HTML %]
|
||||||
[% USE Date %]
|
[% USE Date %]
|
||||||
|
|
||||||
[% project = build.project %]
|
|
||||||
[% jobset = build.jobset %]
|
|
||||||
[% job = build.job %]
|
|
||||||
[% isAggregate = constituents.size > 0 %]
|
[% isAggregate = constituents.size > 0 %]
|
||||||
|
|
||||||
[% BLOCK renderOutputs %]
|
[% BLOCK renderOutputs %]
|
||||||
|
|
Loading…
Reference in a new issue