From 687ca429c3beddf7fc87382dada7135e9a0a60a1 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Mon, 29 Jul 2013 15:33:22 -0400 Subject: [PATCH] Pass project and jobset to fetchInput Signed-off-by: Shea Levy --- src/lib/Hydra/Helper/AddBuilds.pm | 2 +- src/lib/Hydra/Plugin.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/Hydra/Helper/AddBuilds.pm b/src/lib/Hydra/Helper/AddBuilds.pm index 6bad9e81..734a97aa 100644 --- a/src/lib/Hydra/Helper/AddBuilds.pm +++ b/src/lib/Hydra/Helper/AddBuilds.pm @@ -171,7 +171,7 @@ sub fetchInput { else { my $found = 0; foreach my $plugin (@{$plugins}) { - @inputs = $plugin->fetchInput($type, $name, $value); + @inputs = $plugin->fetchInput($type, $name, $value, $project, $jobset); if (defined $inputs[0]) { $found = 1; last; diff --git a/src/lib/Hydra/Plugin.pm b/src/lib/Hydra/Plugin.pm index 8b3df782..4a8ef69e 100644 --- a/src/lib/Hydra/Plugin.pm +++ b/src/lib/Hydra/Plugin.pm @@ -38,7 +38,7 @@ sub supportedInputTypes { # Called to fetch an input of type ‘$type’. ‘$value’ is the input # location, typically the repository URL. sub fetchInput { - my ($self, $type, $name, $value) = @_; + my ($self, $type, $name, $value, $project, $jobset) = @_; return undef; }