pass project name for forced builds

This commit is contained in:
phaer 2023-10-27 10:35:26 +02:00 committed by Mic92
parent 2edf6860b0
commit c7b360eb16

View file

@ -311,7 +311,7 @@ def nix_update_flake_config(
""" """
factory = util.BuildFactory() factory = util.BuildFactory()
url_with_secret = util.Interpolate( 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( factory.addStep(
steps.Git( steps.Git(
@ -615,7 +615,13 @@ def config_for_project(
), ),
# allow to manually trigger a nix-build # allow to manually trigger a nix-build
schedulers.ForceScheduler( 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 # allow to manually update flakes
schedulers.ForceScheduler( schedulers.ForceScheduler(