Fix link to cached build log

[?]
Apr 11, 2017, 12:25 PM
IMA3HWYCJ6WMFVGSQILZWSWO7QXDVDTWAQFNCKI4QO5JL3QX4ZZAC

Dependencies

  • [2] EYAA7MJY hydra-server: Support logs in S3
  • [3] 3PNG7NIB Remove trailing whitespace
  • [4] Y6AHH4TH Remove the logfile and logSize columns from the database
  • [5] ZH6B56XR Try harder to find build logs
  • [6] HPEG2RHV Merge the BuildResultInfo table into the Builds table
  • [7] LBNVQXUB * Build the /build stuff in a separate controller.
  • [8] 2GUAKGTB Fix indentation of build.tt
  • [9] TPNHTE5V Remove obsolete Builds columns and provide accurate "Running builds"
  • [10] R7MDDCB2 Some unnecessary job names
  • [11] PMNWRTGJ Add multiple output support
  • [12] H47WLVAT * Handle the case where there is no cached build step that produced
  • [13] HB3OHPJL hydra: in case of cached build, add link to build that built the storepath
  • [14] K22TMPH5 Make the info tables less compressed
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.

Change contents

  • replacement in src/lib/Hydra/Controller/Build.pm at line 76
    [3.210][3.0:88](),[3.391][3.0:88](),[3.2417][3.0:88](),[3.188][3.0:88]()
    $c->stash->{cachedBuild} = $cachedBuildStep->build if defined $cachedBuildStep;
    [3.391]
    [3.1105]
    if (defined $cachedBuildStep) {
    $c->stash->{cachedBuild} = $cachedBuildStep->build;
    $c->stash->{cachedBuildStep} = $cachedBuildStep;
    }
  • replacement in src/root/build.tt at line 140
    [3.68][3.2134:2229]()
    [% IF steps %]<li><a href="#tabs-buildsteps" data-toggle="tab">Build steps</a></li>[% END %]
    [3.68]
    [3.1968]
    [% IF steps.size() > 0 %]<li><a href="#tabs-buildsteps" data-toggle="tab">Build steps</a></li>[% END %]
  • replacement in src/root/build.tt at line 233
    [3.6532][2.2279:2608]()
    <a class="btn btn-mini" href="[% c.uri_for('/build' actualBuild.id 'log') %]">pretty</a>
    <a class="btn btn-mini" href="[% c.uri_for('/build' actualBuild.id 'log' 'raw') %]">raw</a>
    <a class="btn btn-mini" href="[% c.uri_for('/build' actualBuild.id 'log' 'tail') %]">tail</a>
    [3.6532]
    [3.6622]
    [% actualLog = cachedBuildStep ? c.uri_for('/build' cachedBuild.id 'nixlog' cachedBuildStep.stepnr) : c.uri_for('/build' build.id 'log') %]
    <a class="btn btn-mini" href="[%actualLog%]">pretty</a>
    <a class="btn btn-mini" href="[%actualLog%]/raw">raw</a>
    <a class="btn btn-mini" href="[%actualLog%]/tail">tail</a>