nixos/buildbot: make configurators configurable

This commit is contained in:
Jörg Thalheim 2023-09-24 04:10:05 +02:00 committed by zowoq
parent d9035278d8
commit e2106a5dbb

View File

@ -28,6 +28,7 @@ let
schedulers = [ ${concatStringsSep "," cfg.schedulers} ], schedulers = [ ${concatStringsSep "," cfg.schedulers} ],
builders = [ ${concatStringsSep "," cfg.builders} ], builders = [ ${concatStringsSep "," cfg.builders} ],
services = [ ${concatStringsSep "," cfg.reporters} ], services = [ ${concatStringsSep "," cfg.reporters} ],
configurators = [ ${concatStringsSep "," cfg.configurators} ],
) )
for step in [ ${concatStringsSep "," cfg.factorySteps} ]: for step in [ ${concatStringsSep "," cfg.factorySteps} ]:
factory.addStep(step) 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 { enable = mkOption {
type = types.bool; type = types.bool;
default = false; default = false;