Skip to content

Commit

Permalink
improve the error messages when invalid declarative jobsets are defined
Browse files Browse the repository at this point in the history
  • Loading branch information
cleverca22 committed Sep 11, 2018
1 parent 73ca325 commit 7568b89
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib/Hydra/Helper/AddBuilds.pm
Expand Up @@ -76,7 +76,12 @@ sub handleDeclarativeJobsetBuild {
push @kept, ".jobsets";
$project->jobsets->search({ name => { "not in" => \@kept } })->update({ enabled => 0, hidden => 1 });
while ((my $jobsetName, my $spec) = each %$declSpec) {
updateDeclarativeJobset($db, $project, $jobsetName, $spec);
eval {
updateDeclarativeJobset($db, $project, $jobsetName, $spec);
};
if ($@) {
print STDERR "ERROR: failed to process declarative jobset ", $project->name, ":${jobsetName}, ", $@, "\n";
}
}
});
};
Expand Down

0 comments on commit 7568b89

Please sign in to comment.