hydra-notify: Don't do an unnecessary fetch of Jobsets

This commit is contained in:
Eelco Dolstra 2019-08-13 17:19:40 +02:00
parent e2537f741b
commit f49a089fc0
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -40,8 +40,8 @@ sub buildFinished {
my ($build, @deps) = @_;
my $project = $build->project;
my $jobset = $build->jobset;
if (length($project->declfile) && $jobset->name eq ".jobsets" && $build->iscurrent) {
my $jobsetName = $build->get_column('jobset');
if (length($project->declfile) && $jobsetName eq ".jobsets" && $build->iscurrent) {
handleDeclarativeJobsetBuild($db, $project, $build);
}