hydra-notify: move buildFinished query in to the function impl

[?]
Aug 6, 2021, 2:16 PM
GE7LFZHQHT2ENWSZRNF6KWNBRXTHLA2SQGHT5ARACU4CZWDPWOZQC

Dependencies

  • [2] 4ZCUCACY hydra-notify: Fix processing notifications
  • [3] 32KJOERM Turn hydra-notify into a daemon
  • [4] 3AKZKWCR RunCommand: Test
  • [5] CQZQE32V Improve handling of Perl's block eval errors
  • [6] NTEDD7T4 Provide a plugin hook for when build steps finish
  • [7] 6WRGCITD Enable declarative projects.
  • [8] IE2PRAQU hydra-queue-runner: Send build notifications

Change contents

  • replacement in src/script/hydra-notify at line 50
    [3.1942][3.1942:1971]()
    my ($build, @deps) = @_;
    [3.1942]
    [3.1971]
    my ($buildId, @deps) = @_;
    my $build = $db->resultset('Builds')->find($buildId)
    or die "build $buildId does not exist\n";
  • replacement in src/script/hydra-notify at line 113
    [3.2566][3.2566:2593]()
    buildFinished($build);
    [3.2566]
    [3.2593]
    buildFinished($build->id);
  • replacement in src/script/hydra-notify at line 136
    [2.439][2.439:633]()
    my $build = $db->resultset('Builds')->find($buildId)
    or die "build $buildId does not exist\n";
    buildFinished($build, @payload[1..$#payload]);
    [2.439]
    [2.633]
    buildFinished($buildId, @payload[1..$#payload]);