use strict;
use warnings;
use utf8;
use parent 'Hydra::Plugin';
use Hydra::Helper::CatalystUtils;
{
my ($self, $step, $logPath) = @_;
my $doCompress = $self->{ }->{'compress_build_logs'} // "1";
if ($doCompress eq "1" && -e $logPath) {
print STDERR "compressing ‘$logPath’...\n";
system("bzip2", "--force", $logPath);
}
}
1;