nixos/buildbot: make configurators configurable
This commit is contained in:
parent
d9035278d8
commit
e2106a5dbb
1 changed files with 10 additions and 0 deletions
|
@ -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 a new issue