forked from lix-project/hydra
efd011fbc3
I don't understand perl strings.
This reverts commit b2f6be9686
.
Signed-off-by: Shea Levy <shea@shealevy.com>
22 lines
424 B
Perl
22 lines
424 B
Perl
package Hydra::Helper::PluginHooks;
|
|
|
|
use strict;
|
|
use Exporter;
|
|
|
|
our @ISA = qw(Exporter);
|
|
our @EXPORT = qw(
|
|
notifyBuildFinished);
|
|
|
|
sub notifyBuildFinished {
|
|
my ($plugins, $build, $dependents) = @_;
|
|
foreach my $plugin (@{$plugins}) {
|
|
eval {
|
|
$plugin->buildFinished($build, $dependents);
|
|
};
|
|
if ($@) {
|
|
print STDERR "$plugin->buildFinished: $@\n";
|
|
}
|
|
}
|
|
}
|
|
|
|
1;
|