Propagate checkresponsible from JobsetInput to BuildInput
Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
parent
07157f8125
commit
3e4a4e3761
|
@ -148,7 +148,7 @@ sub fetchInputSystemBuild {
|
|||
}
|
||||
|
||||
sub fetchInput {
|
||||
my ($plugins, $db, $project, $jobset, $name, $type, $value) = @_;
|
||||
my ($plugins, $db, $project, $jobset, $name, $type, $value, $checkresponsbile) = @_;
|
||||
my @inputs;
|
||||
|
||||
if ($type eq "build") {
|
||||
|
@ -177,7 +177,10 @@ sub fetchInput {
|
|||
die "input `$name' has unknown type `$type'." unless $found;
|
||||
}
|
||||
|
||||
$_->{type} = $type foreach @inputs;
|
||||
foreach my $input (@inputs) {
|
||||
$input->{type} = $type;
|
||||
$input->{checkresponsible} = $checkresponsible;
|
||||
}
|
||||
|
||||
return @inputs;
|
||||
}
|
||||
|
@ -542,6 +545,7 @@ sub checkBuild {
|
|||
, uri => $input->{uri}
|
||||
, revision => $input->{revision}
|
||||
, value => $input->{value}
|
||||
, checkresponsible => $input->{checkresponsible}
|
||||
, dependency => $input->{id}
|
||||
, path => $input->{storePath} || "" # !!! temporary hack
|
||||
, sha256hash => $input->{sha256hash}
|
||||
|
|
|
@ -34,7 +34,7 @@ sub fetchInputs {
|
|||
foreach my $input ($jobset->jobsetinputs->all) {
|
||||
foreach my $alt ($input->jobsetinputalts->all) {
|
||||
push @{$$inputInfo{$input->name}}, $_
|
||||
foreach fetchInput($plugins, $db, $project, $jobset, $input->name, $input->type, $alt->value);
|
||||
foreach fetchInput($plugins, $db, $project, $jobset, $input->name, $input->type, $alt->value, $input->checkresponsible);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue