From c1e7af17944065de3417432d7ab730e0f2e8cbcf Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Mon, 6 May 2024 20:26:28 +0200 Subject: [PATCH] chore(nix-eval): generalize the builds_scheduler_group by project Signed-off-by: Raito Bezarius --- buildbot_nix/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/buildbot_nix/__init__.py b/buildbot_nix/__init__.py index 2fca383..e99a8ad 100644 --- a/buildbot_nix/__init__.py +++ b/buildbot_nix/__init__.py @@ -347,6 +347,9 @@ class NixEvalCommand(buildstep.ShellMixin, steps.BuildStep): def run(self) -> Generator[Any, object, Any]: # run nix-eval-jobs --flake .#$FLAKE_TARGET_ATTRIBUTE_FOR_JOBS to generate the dict of stages cmd: remotecommand.RemoteCommand = yield self.makeRemoteShellCommand() + build_props = self.build.getProperties() + project_name = build_props.get('event.project') + yield self.runCommand(cmd) # if the command passes extract the list of stages @@ -403,7 +406,7 @@ class NixEvalCommand(buildstep.ShellMixin, steps.BuildStep): self.build.addStepsAfterCurrentStep( [ BuildTrigger( - builds_scheduler_group=f"lix-nix-build", + builds_scheduler_group=f"{project_name}-nix-build", name="build flake", jobs=filtered_jobs, all_deps=all_deps,