From c7b360eb16f91f7f40576b9932cd61f4339a6d45 Mon Sep 17 00:00:00 2001 From: phaer Date: Fri, 27 Oct 2023 10:35:26 +0200 Subject: [PATCH] pass project name for forced builds --- buildbot_nix/__init__.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/buildbot_nix/__init__.py b/buildbot_nix/__init__.py index 54fc72d..da7128c 100644 --- a/buildbot_nix/__init__.py +++ b/buildbot_nix/__init__.py @@ -311,7 +311,7 @@ def nix_update_flake_config( """ factory = util.BuildFactory() url_with_secret = util.Interpolate( - f"https://git:%(secret:{github_token_secret})s@github.com/{project.name}" + f"https://git:%(secret:{github_token_secret})s@github.com/%(prop:project)s" ) factory.addStep( steps.Git( @@ -615,7 +615,13 @@ def config_for_project( ), # allow to manually trigger a nix-build schedulers.ForceScheduler( - name=f"{project.id}-force", builderNames=[f"{project.name}/nix-eval"] + name=f"{project.id}-force", builderNames=[f"{project.name}/nix-eval"], + properties=[ + util.StringParameter( + name="project", + label="Name of the GitHub repository.", + default=project.name) + ] ), # allow to manually update flakes schedulers.ForceScheduler(