Add buildStarted plugin hook
This commit is contained in:
@ -5,8 +5,21 @@ use Exporter;
|
||||
|
||||
our @ISA = qw(Exporter);
|
||||
our @EXPORT = qw(
|
||||
notifyBuildStarted
|
||||
notifyBuildFinished);
|
||||
|
||||
sub notifyBuildStarted {
|
||||
my ($plugins, $build) = @_;
|
||||
foreach my $plugin (@{$plugins}) {
|
||||
eval {
|
||||
$plugin->buildStarted($build);
|
||||
};
|
||||
if ($@) {
|
||||
print STDERR "$plugin->buildStarted: $@\n":
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sub notifyBuildFinished {
|
||||
my ($plugins, $build, $dependents) = @_;
|
||||
foreach my $plugin (@{$plugins}) {
|
||||
|
Reference in New Issue
Block a user