From 5e10648a9845a0a444932f5dd8e089ab8a5be1ea Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Fri, 20 Aug 2021 21:50:30 -0400 Subject: [PATCH] CoverityScan: $b -> $build (perlcritic) --- src/lib/Hydra/Plugin/CoverityScan.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/Hydra/Plugin/CoverityScan.pm b/src/lib/Hydra/Plugin/CoverityScan.pm index 1ee60843..f395100f 100644 --- a/src/lib/Hydra/Plugin/CoverityScan.pm +++ b/src/lib/Hydra/Plugin/CoverityScan.pm @@ -12,19 +12,19 @@ sub isEnabled { } sub buildFinished { - my ($self, $b, $dependents) = @_; + my ($self, $build, $dependents) = @_; my $cfg = $self->{config}->{coverityscan}; my @config = defined $cfg ? ref $cfg eq "ARRAY" ? @$cfg : ($cfg) : (); # Scan the job and see if it matches any of the Coverity Scan projects my $proj; - my $jobName = showJobName $b; + my $jobName = showJobName $build; foreach my $p (@config) { next unless $jobName =~ /^$p->{jobs}$/; # If build is cancelled or aborted, do not upload build - next if $b->buildstatus == 4 || $b->buildstatus == 3; + next if $build->buildstatus == 4 || $build->buildstatus == 3; # Otherwise, select this Coverity project $proj = $p; last; @@ -47,7 +47,7 @@ sub buildFinished { unless defined $token; # Get tarball locations - my $storePath = ($b->buildoutputs)[0]->path; + my $storePath = ($build->buildoutputs)[0]->path; my $tarballs = "$storePath/tarballs"; my $covTarball; @@ -87,7 +87,7 @@ sub buildFinished { unless defined $version; # Submit build - my $jobid = $b->id; + my $jobid = $build->id; my $desc = "Hydra Coverity Build ($jobName) - $jobid:$version"; print STDERR "uploading $desc ($shortName) to Coverity Scan\n";