Fix error in GitlabStatus plugin
May 15 09:20:10 chef hydra-queue-runner[27523]: Hydra::Plugin::GitlabStatus=HASH(0x519a7b8)->buildFinished: Can't call method "value" on an undefined value at /nix/store/858hinflxcl2jd12wv1r3a8j11ybsf6w-hydra-0.1.2629.89fa829/libexec/hydra/lib/Hydra/Plugin/GitlabStatus.pm line 57.
This commit is contained in:
parent
89fa82930a
commit
438ddf5289
|
@ -54,7 +54,7 @@ sub common {
|
|||
});
|
||||
while (my $eval = $evals->next) {
|
||||
my $gitlabstatusInput = $eval->jobsetevalinputs->find({ name => "gitlab_status_repo" });
|
||||
next unless defined $gitlabstatusInput->value;
|
||||
next unless defined $gitlabstatusInput && defined $gitlabstatusInput->value;
|
||||
my $i = $eval->jobsetevalinputs->find({ name => $gitlabstatusInput->value, altnr => 0 });
|
||||
next unless defined $i;
|
||||
my $projectId = $eval->jobsetevalinputs->find({ name => "gitlab_project_id" })->value;
|
||||
|
|
Loading…
Reference in a new issue