diff options
author | Fernando J Pando <fernando.pando@stelligent.com> | 2017-02-27 14:02:11 -0500 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2017-03-07 00:45:37 +0100 |
commit | 9f062c2c0b98a8f6e715dacc4b90ca712a868fac (patch) | |
tree | 18bcc7bde18dffca91815f2f6ff519a8c8c497f2 /nixos/modules/services/continuous-integration | |
parent | d102115101a91788013f732193340a8e88d0282e (diff) | |
download | nixlib-9f062c2c0b98a8f6e715dacc4b90ca712a868fac.tar nixlib-9f062c2c0b98a8f6e715dacc4b90ca712a868fac.tar.gz nixlib-9f062c2c0b98a8f6e715dacc4b90ca712a868fac.tar.bz2 nixlib-9f062c2c0b98a8f6e715dacc4b90ca712a868fac.tar.lz nixlib-9f062c2c0b98a8f6e715dacc4b90ca712a868fac.tar.xz nixlib-9f062c2c0b98a8f6e715dacc4b90ca712a868fac.tar.zst nixlib-9f062c2c0b98a8f6e715dacc4b90ca712a868fac.zip |
buildbot: 0.9.3 -> 0.9.4
- adds jwt - adds module tests - master.cfg as path in module - fix systemd worker config - builds on darwin - tested on nixos
Diffstat (limited to 'nixos/modules/services/continuous-integration')
-rw-r--r-- | nixos/modules/services/continuous-integration/buildbot/master.nix | 18 | ||||
-rw-r--r-- | nixos/modules/services/continuous-integration/buildbot/worker.nix | 5 |
2 files changed, 7 insertions, 16 deletions
diff --git a/nixos/modules/services/continuous-integration/buildbot/master.nix b/nixos/modules/services/continuous-integration/buildbot/master.nix index f638cf4bae3b..68306109130e 100644 --- a/nixos/modules/services/continuous-integration/buildbot/master.nix +++ b/nixos/modules/services/continuous-integration/buildbot/master.nix @@ -28,7 +28,7 @@ let ${cfg.extraConfig} '' - else pkgs.writeText "master.cfg" cfg.masterCfg; + else cfg.masterCfg; in { options = { @@ -66,13 +66,10 @@ in { }; masterCfg = mkOption { - type = types.nullOr types.str; - description = '' - Optionally pass raw master.cfg file as string. - Other options in this configuration will be ignored. - ''; + type = types.nullOr types.path; + description = "Optionally pass master.cfg path. Other options in this configuration will be ignored."; default = null; - example = "BuildmasterConfig = c = {}"; + example = "/etc/nixos/buildbot/master.cfg"; }; schedulers = mkOption { @@ -88,7 +85,7 @@ in { type = types.listOf types.str; description = "List of Builders."; default = [ - "util.BuilderConfig(name='runtests',workernames=['default-worker'],factory=factory)" + "util.BuilderConfig(name='runtests',workernames=['example-worker'],factory=factory)" ]; }; @@ -183,10 +180,7 @@ in { package = mkOption { type = types.package; default = pkgs.buildbot-ui; - description = '' - Package to use for buildbot. - <literal>buildbot-full</literal> is required in order to use local workers. - ''; + description = "Package to use for buildbot."; example = pkgs.buildbot-full; }; diff --git a/nixos/modules/services/continuous-integration/buildbot/worker.nix b/nixos/modules/services/continuous-integration/buildbot/worker.nix index 430fd4e53f1c..1ad1319d501d 100644 --- a/nixos/modules/services/continuous-integration/buildbot/worker.nix +++ b/nixos/modules/services/continuous-integration/buildbot/worker.nix @@ -100,14 +100,11 @@ in { systemd.services.buildbot-worker = { description = "Buildbot Worker."; - after = [ "network.target" ]; + after = [ "network.target" "buildbot-master.service" ]; wantedBy = [ "multi-user.target" ]; - wants = [ "buildbot-master.service" ]; path = cfg.packages; preStart = '' - # NOTE: ensure master has time to start in case running on localhost - ${pkgs.coreutils}/bin/sleep 4 ${pkgs.coreutils}/bin/mkdir -vp ${cfg.buildbotDir} ${cfg.package}/bin/buildbot-worker create-worker ${cfg.buildbotDir} ${cfg.masterUrl} ${cfg.workerUser} ${cfg.workerPass} ''; |