ZNKPGZHFKUN5MWQNCSABTLGL42AOCBOPZEOYV44LQFKTC5ARXSEQC
(my $lastBuildStep) = $build->buildsteps->search({},{order_by => "stepnr", rows => 1});
if ($build->resultInfo->buildstatus == 1 && $lastBuildStep && isValidPath($lastBuildStep->logfile)) {
(my $lastBuildStep) = $build->buildsteps->search({},{order_by => "stepnr DESC", rows => 1});
if (defined $build->resultInfo && $build->resultInfo->buildstatus == 1 && $lastBuildStep && isValidPath($lastBuildStep->logfile)) {