feat: support Gerrit in Buildbot #1

Merged
qyriad merged 46 commits from gerrit into main 2024-04-30 19:42:02 +00:00
Showing only changes of commit 9f98533dd7 - Show all commits

View file

@ -19,10 +19,10 @@ in
defaultText = "pkgs.buildbot-worker"; defaultText = "pkgs.buildbot-worker";
description = "The buildbot-worker package to use."; description = "The buildbot-worker package to use.";
}; };
masterUrl = lib.mkOption { coordinatorUrl = lib.mkOption {
type = lib.types.str; type = lib.types.str;
default = "tcp:host=localhost:port=9989"; default = "tcp:host=localhost:port=9989";
description = "The buildbot master url."; description = "The buildbot coordinator url.";
}; };
workerPasswordFile = lib.mkOption { workerPasswordFile = lib.mkOption {
type = lib.types.path; type = lib.types.path;
@ -61,7 +61,7 @@ in
pkgs.nix-eval-jobs pkgs.nix-eval-jobs
]; ];
environment.PYTHONPATH = "${python.withPackages (_: [cfg.package])}/${python.sitePackages}"; environment.PYTHONPATH = "${python.withPackages (_: [cfg.package])}/${python.sitePackages}";
environment.MASTER_URL = cfg.masterUrl; environment.MASTER_URL = cfg.coordinatorUrl;
environment.BUILDBOT_DIR = buildbotDir; environment.BUILDBOT_DIR = buildbotDir;
serviceConfig = { serviceConfig = {