mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-04-01 17:50:51 +02:00
cleaning buildbot config
This commit is contained in:
parent
c6188f62a5
commit
b90f365485
1 changed files with 1 additions and 11 deletions
|
@ -114,6 +114,7 @@ class NixEvalCommand(buildstep.ShellMixin, steps.BuildStep):
|
||||||
|
|
||||||
# if the command passes extract the list of stages
|
# if the command passes extract the list of stages
|
||||||
result = cmd.results()
|
result = cmd.results()
|
||||||
|
print(f"RESULT: {result}")
|
||||||
if result == util.SUCCESS:
|
if result == util.SUCCESS:
|
||||||
# create a ShellCommand for each stage and add them to the build
|
# create a ShellCommand for each stage and add them to the build
|
||||||
jobs = []
|
jobs = []
|
||||||
|
@ -295,18 +296,9 @@ def nix_update_flake_config(
|
||||||
properties=dict(virtual_builder_name="nix-update-flake"),
|
properties=dict(virtual_builder_name="nix-update-flake"),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class Machine:
|
|
||||||
def __init__(self, hostname: str, attr_name: str) -> None:
|
|
||||||
self.hostname = hostname
|
|
||||||
self.attr_name = attr_name
|
|
||||||
|
|
||||||
|
|
||||||
def nix_eval_config(
|
def nix_eval_config(
|
||||||
worker_names: list[str],
|
worker_names: list[str],
|
||||||
github_token_secret: str,
|
github_token_secret: str,
|
||||||
automerge_users: List[str] = [],
|
|
||||||
machines: list[Machine] = [],
|
|
||||||
) -> util.BuilderConfig:
|
) -> util.BuilderConfig:
|
||||||
"""
|
"""
|
||||||
Uses nix-eval-jobs to evaluate hydraJobs from flake.nix in parallel.
|
Uses nix-eval-jobs to evaluate hydraJobs from flake.nix in parallel.
|
||||||
|
@ -360,8 +352,6 @@ def nix_eval_config(
|
||||||
|
|
||||||
def nix_build_config(
|
def nix_build_config(
|
||||||
worker_names: list[str],
|
worker_names: list[str],
|
||||||
has_cachix_auth_token: bool = False,
|
|
||||||
has_cachix_signing_key: bool = False,
|
|
||||||
) -> util.BuilderConfig:
|
) -> util.BuilderConfig:
|
||||||
"""
|
"""
|
||||||
Builds one nix flake attribute.
|
Builds one nix flake attribute.
|
||||||
|
|
Loading…
Add table
Reference in a new issue