hydra: error on buildpage for queued build

[?]
Feb 6, 2010, 7:15 AM
ZNKPGZHFKUN5MWQNCSABTLGL42AOCBOPZEOYV44LQFKTC5ARXSEQC

Dependencies

  • [2] MPVX6MKX * hydra: on build page, show tail of log on first tab when buildstatus == 1 (this specific build failed)
  • [3] LBNVQXUB * Build the /build stuff in a separate controller.
  • [4] HB3OHPJL hydra: in case of cached build, add link to build that built the storepath

Change contents

  • replacement in src/lib/Hydra/Controller/Build.pm at line 47
    [2.5][2.5:201]()
    (my $lastBuildStep) = $build->buildsteps->search({},{order_by => "stepnr", rows => 1});
    if ($build->resultInfo->buildstatus == 1 && $lastBuildStep && isValidPath($lastBuildStep->logfile)) {
    [2.5]
    [2.201]
    (my $lastBuildStep) = $build->buildsteps->search({},{order_by => "stepnr DESC", rows => 1});
    if (defined $build->resultInfo && $build->resultInfo->buildstatus == 1 && $lastBuildStep && isValidPath($lastBuildStep->logfile)) {