NZI7E2E3LQJ6SGK3WURDUEE54JWEBVDNHTQ2PYSKHRCRZVOWKQVAC
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`;
}