From 5b35a597b4c1055c8cb6094634cbfc9909ffbec6 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Sun, 9 Jan 2022 09:18:47 -0500 Subject: [PATCH] RunCommand: update project / jobset name refs --- src/lib/Hydra/Plugin/RunCommand.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/Hydra/Plugin/RunCommand.pm b/src/lib/Hydra/Plugin/RunCommand.pm index 1a122411..36c77ce4 100644 --- a/src/lib/Hydra/Plugin/RunCommand.pm +++ b/src/lib/Hydra/Plugin/RunCommand.pm @@ -76,8 +76,8 @@ sub makeJsonPayload { build => $build->id, finished => $build->get_column('finished') ? JSON::MaybeXS::true : JSON::MaybeXS::false, timestamp => $build->get_column('timestamp'), - project => $build->get_column('project'), - jobset => $build->get_column('jobset'), + project => $build->project->get_column('name'), + jobset => $build->jobset->get_column('name'), job => $build->get_column('job'), drvPath => $build->get_column('drvpath'), startTime => $build->get_column('starttime'), @@ -134,8 +134,8 @@ sub buildFinished { my $commandsToRun = fanoutToCommands( $self->{config}, $event, - $build->get_column('project'), - $build->get_column('jobset'), + $build->project->get_column('name'), + $build->jobset->get_column('name'), $build->get_column('job') );