Declarative jobsets: move event handling to a plugin
[?]
Aug 12, 2021, 2:42 PM
TNS4QKM4D6IDN6BGS55WGJN5J3ELUVYXNS753SX62ZLVHDL34NLACDependencies
- [2]
32KJOERMTurn hydra-notify into a daemon - [3]
AWPYSGP6hydra-notify: Don't do an unnecessary fetch of Jobsets - [4]
IE2PRAQUhydra-queue-runner: Send build notifications - [5]
FCTX433OAdd buildStarted plugin hook - [6]
NTEDD7T4Provide a plugin hook for when build steps finish - [7]
6WRGCITDEnable declarative projects. - [*]
5EQYVRWEAdd a plugin mechanism
Change contents
- file addition: DeclarativeJobsets.pm[9.1]
package Hydra::Plugin::DeclarativeJobsets;use strict;use parent 'Hydra::Plugin';use Hydra::Helper::AddBuilds;sub buildFinished {my ($self, $build, $dependents) = @_;my $project = $build->project;my $jobsetName = $build->get_column('jobset');if (length($project->declfile) && $jobsetName eq ".jobsets" && $build->iscurrent) {handleDeclarativeJobsetBuild($self->{"db"}, $project, $build);}}1; - edit in src/script/hydra-notify at line 51[2.1971]→[2.1971:1972](∅→∅),[2.1972]→[4.5667:5702](∅→∅),[4.1823]→[4.5667:5702](∅→∅),[4.5702]→[3.0:139](∅→∅),[3.139]→[4.5825:5892](∅→∅),[4.5825]→[4.5825:5892](∅→∅)
my $project = $build->project;my $jobsetName = $build->get_column('jobset');if (length($project->declfile) && $jobsetName eq ".jobsets" && $build->iscurrent) {handleDeclarativeJobsetBuild($db, $project, $build);}