Add buildQueued plugin hook

[?]
May 24, 2017, 1:45 PM
PXTSKX4GBDOBMI4MDO64DBIHSEVTM6IZ5O6GUFXK6UL63GHWBMBAC

Dependencies

  • [2] NTEDD7T4 Provide a plugin hook for when build steps finish
  • [3] VU2OLHD2 Move most of AddBuilds to hydra-eval-jobset
  • [*] NSRWW6LC Add a plugin to interact with the github status API.
  • [*] 5EQYVRWE Add a plugin mechanism
  • [*] FCTX433O Add buildStarted plugin hook
  • [*] N22GPKYT * Put info about logs / build products in the DB.
  • [*] IE2PRAQU hydra-queue-runner: Send build notifications

Change contents

  • edit in src/lib/Hydra/Plugin/GithubStatus.pm at line 70
    [5.2722]
    [5.2722]
    }
    sub buildQueued {
    common(@_, [], 0);
  • edit in src/lib/Hydra/Plugin.pm at line 23
    [6.6015]
    [7.1482]
    # Called when build $build has been queued.
    sub buildQueued {
    my ($self, $build) = @_;
    }
  • edit in src/script/hydra-eval-jobset at line 474
    [3.16911]
    [3.16911]
    system("hydra-notify build-queued " . $build->id) if defined $buildMap->{$build->id} && $buildMap->{$build->id}->{new};
  • edit in src/script/hydra-notify at line 45
    [2.4019]
    [2.4019]
    elsif ($cmd eq "build-queued") {
    foreach my $plugin (@plugins) {
    eval { $plugin->buildQueued($build); };
    if ($@) {
    print STDERR "$plugin->buildQueued: $@\n";
    }
    }
    }