mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
nixos/buildbot: make configurators configurable
This commit is contained in:
parent
d9035278d8
commit
e2106a5dbb
@ -28,6 +28,7 @@ let
|
||||
schedulers = [ ${concatStringsSep "," cfg.schedulers} ],
|
||||
builders = [ ${concatStringsSep "," cfg.builders} ],
|
||||
services = [ ${concatStringsSep "," cfg.reporters} ],
|
||||
configurators = [ ${concatStringsSep "," cfg.configurators} ],
|
||||
)
|
||||
for step in [ ${concatStringsSep "," cfg.factorySteps} ]:
|
||||
factory.addStep(step)
|
||||
@ -79,6 +80,15 @@ in {
|
||||
];
|
||||
};
|
||||
|
||||
configurators = mkOption {
|
||||
type = types.listOf types.str;
|
||||
description = lib.mdDoc "Configurator Steps, see https://docs.buildbot.net/latest/manual/configuration/configurators.html";
|
||||
default = [];
|
||||
example = [
|
||||
"util.JanitorConfigurator(logHorizon=timedelta(weeks=4), hour=12, dayOfWeek=6)"
|
||||
];
|
||||
};
|
||||
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
|
Loading…
Reference in New Issue
Block a user