forked from lix-project/hydra
Pass project and jobset to fetchInput
Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
parent
5efe8365ef
commit
687ca429c3
|
@ -171,7 +171,7 @@ sub fetchInput {
|
||||||
else {
|
else {
|
||||||
my $found = 0;
|
my $found = 0;
|
||||||
foreach my $plugin (@{$plugins}) {
|
foreach my $plugin (@{$plugins}) {
|
||||||
@inputs = $plugin->fetchInput($type, $name, $value);
|
@inputs = $plugin->fetchInput($type, $name, $value, $project, $jobset);
|
||||||
if (defined $inputs[0]) {
|
if (defined $inputs[0]) {
|
||||||
$found = 1;
|
$found = 1;
|
||||||
last;
|
last;
|
||||||
|
|
|
@ -38,7 +38,7 @@ sub supportedInputTypes {
|
||||||
# Called to fetch an input of type ‘$type’. ‘$value’ is the input
|
# Called to fetch an input of type ‘$type’. ‘$value’ is the input
|
||||||
# location, typically the repository URL.
|
# location, typically the repository URL.
|
||||||
sub fetchInput {
|
sub fetchInput {
|
||||||
my ($self, $type, $name, $value) = @_;
|
my ($self, $type, $name, $value, $project, $jobset) = @_;
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue