l 2 buildbot: update config to work with 0.9.1

This commit is contained in:
lassulus 2016-11-21 19:39:50 +01:00
parent 55ffcfcb1a
commit e06ac2aa3e

View File

@ -13,8 +13,8 @@ in {
config.krebs.buildbot.master = let config.krebs.buildbot.master = let
stockholm-mirror-url = http://cgit.prism/stockholm ; stockholm-mirror-url = http://cgit.prism/stockholm ;
in { in {
slaves = { workers = {
testslave = "lasspass"; testworker = "lasspass";
}; };
change_source.stockholm = '' change_source.stockholm = ''
stockholm_repo = '${stockholm-mirror-url}' stockholm_repo = '${stockholm-mirror-url}'
@ -36,7 +36,7 @@ in {
}; };
builder_pre = '' builder_pre = ''
# prepare grab_repo step for stockholm # prepare grab_repo step for stockholm
grab_repo = steps.Git(repourl=stockholm_repo, mode='incremental') grab_repo = steps.Git(repourl=stockholm_repo, mode='incremental', alwaysUseLatest=True)
# TODO: get nixpkgs/stockholm paths from krebs # TODO: get nixpkgs/stockholm paths from krebs
env_lass = { env_lass = {
@ -94,7 +94,7 @@ in {
system={}".format(i)]) system={}".format(i)])
bu.append(util.BuilderConfig(name="build-all", bu.append(util.BuilderConfig(name="build-all",
slavenames=slavenames, workernames=workernames,
factory=f)) factory=f))
''; '';
@ -152,7 +152,7 @@ in {
make system=prism pkgs.{}".format(i)]) make system=prism pkgs.{}".format(i)])
bu.append(util.BuilderConfig(name="build-pkgs", bu.append(util.BuilderConfig(name="build-pkgs",
slavenames=slavenames, workernames=workernames,
factory=f)) factory=f))
''; '';
}; };
@ -162,15 +162,15 @@ in {
enable = true; enable = true;
nick = "buildbot-lass"; nick = "buildbot-lass";
server = "ni.r"; server = "ni.r";
channels = [ { channels = "retiolum"; } ]; channels = [ { channel = "retiolum"; } ];
allowForce = true; allowForce = true;
}; };
}; };
config.krebs.buildbot.slave = { config.krebs.buildbot.worker = {
enable = true; enable = true;
masterhost = "localhost"; masterhost = "localhost";
username = "testslave"; username = "testworker";
password = "lasspass"; password = "lasspass";
packages = with pkgs; [ gnumake jq nix populate ]; packages = with pkgs; [ gnumake jq nix populate ];
extraEnviron = { extraEnviron = {
@ -190,8 +190,8 @@ in {
options.lass.build-ssh-privkey = mkOption { options.lass.build-ssh-privkey = mkOption {
type = types.secret-file; type = types.secret-file;
default = { default = {
path = "${config.users.users.buildbotSlave.home}/ssh.privkey"; path = "${config.users.users.buildbotworker.home}/ssh.privkey";
owner = { inherit (config.users.users.buildbotSlave ) name uid;}; owner = { inherit (config.users.users.buildbotworker ) name uid;};
source-path = toString <secrets> + "/build.ssh.key"; source-path = toString <secrets> + "/build.ssh.key";
}; };
}; };