From 49f97876d5f899323d5abd65fe2333032adeb9cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 20 Nov 2023 09:07:45 +0100 Subject: [PATCH] fix status_name and virtual_builder_name --- buildbot_nix/__init__.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/buildbot_nix/__init__.py b/buildbot_nix/__init__.py index f60d05f..980362b 100644 --- a/buildbot_nix/__init__.py +++ b/buildbot_nix/__init__.py @@ -86,16 +86,16 @@ class BuildTrigger(Trigger): name = f"checks.{name}" error = job.get("error") props = Properties() + props.setProperty("virtual_builder_name", name, source) + props.setProperty("status_name", f"nix-build .#checks.{attr}", source) props.setProperty("virtual_builder_tags", "", source) if error is not None: props.setProperty("error", error, source) - props.setProperty("virtual_builder_name", f"{name}", source) triggered_schedulers.append((self.skipped_builds_scheduler, props)) continue if job.get("isCached"): - props.setProperty("virtual_builder_name", f"{name}", source) triggered_schedulers.append((self.skipped_builds_scheduler, props)) continue @@ -106,8 +106,6 @@ class BuildTrigger(Trigger): build_props.setProperty(f"{attr}-out_path", out_path, source) build_props.setProperty(f"{attr}-drv_path", drv_path, source) - props.setProperty("virtual_builder_name", name, source) - props.setProperty("status_name", f"nix-build .#checks.{attr}", source) props.setProperty("attr", attr, source) props.setProperty("system", system, source) props.setProperty("drv_path", drv_path, source)