* hydra: handle case where logfile is empty
[?]
Feb 8, 2010, 11:46 AM
NZI7E2E3LQJ6SGK3WURDUEE54JWEBVDNHTQ2PYSKHRCRZVOWKQVACDependencies
- [2]
ZNKPGZHFhydra: error on buildpage for queued build - [3]
MPVX6MKX* hydra: on build page, show tail of log on first tab when buildstatus == 1 (this specific build failed) - [4]
HB3OHPJLhydra: in case of cached build, add link to build that built the storepath - [*]
LBNVQXUB* Build the /build stuff in a separate controller.
Change contents
- replacement in src/lib/Hydra/Controller/Build.pm at line 48
if (defined $build->resultInfo && $build->resultInfo->buildstatus == 1 && $lastBuildStep && isValidPath($lastBuildStep->logfile)) {my $path = $lastBuildStep->logfile;$c->stash->{logtext} = `tail -n 50 $path`;}my $path = defined $lastBuildStep ? $lastBuildStep->logfile : "" ;if (defined $build->resultInfo && $build->resultInfo->buildstatus == 1 && !($path eq "") && isValidPath($lastBuildStep->logfile)) {$c->stash->{logtext} = `tail -n 50 $path`;}