chore(nix-eval): generalize the builds_scheduler_group by project

Signed-off-by: Raito Bezarius <raito@lix.systems>
This commit is contained in:
raito 2024-05-06 20:26:28 +02:00
parent fd058a5022
commit 98b5d1ed27

View file

@ -313,6 +313,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
@ -369,7 +372,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,