krebs buildbot: add treeStableTimer as option
This commit is contained in:
parent
c97358f18a
commit
35784d80d2
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 80 8010 9989 ];
|
networking.firewall.allowedTCPPorts = [ 80 8010 9989 ];
|
||||||
krebs.ci.enable = true;
|
krebs.ci.enable = true;
|
||||||
|
krebs.ci.treeStableTimer = 1;
|
||||||
krebs.ci.users.krebs.all = true;
|
krebs.ci.users.krebs.all = true;
|
||||||
krebs.ci.users.lass.all = true;
|
krebs.ci.users.lass.all = true;
|
||||||
krebs.ci.users.makefu.all = true;
|
krebs.ci.users.makefu.all = true;
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 80 8010 9989 ];
|
networking.firewall.allowedTCPPorts = [ 80 8010 9989 ];
|
||||||
krebs.ci.enable = true;
|
krebs.ci.enable = true;
|
||||||
|
krebs.ci.treeStableTimer = 120;
|
||||||
krebs.ci.users.krebs.hosts = [
|
krebs.ci.users.krebs.hosts = [
|
||||||
config.networking.hostName
|
config.networking.hostName
|
||||||
];
|
];
|
||||||
|
@ -8,6 +8,11 @@ in
|
|||||||
{
|
{
|
||||||
options.krebs.ci = {
|
options.krebs.ci = {
|
||||||
enable = mkEnableOption "krebs continous integration";
|
enable = mkEnableOption "krebs continous integration";
|
||||||
|
treeStableTimer = mkOption {
|
||||||
|
type = types.int;
|
||||||
|
default = 10;
|
||||||
|
description = "how long to wait until we test changes (in minutes)";
|
||||||
|
};
|
||||||
users = mkOption {
|
users = mkOption {
|
||||||
type = with types; attrsOf (submodule {
|
type = with types; attrsOf (submodule {
|
||||||
options = {
|
options = {
|
||||||
@ -69,7 +74,7 @@ in
|
|||||||
sched.append(
|
sched.append(
|
||||||
schedulers.SingleBranchScheduler(
|
schedulers.SingleBranchScheduler(
|
||||||
change_filter=util.ChangeFilter(branch_re=".*"),
|
change_filter=util.ChangeFilter(branch_re=".*"),
|
||||||
treeStableTimer=10,
|
treeStableTimer=${toString cfg.treeStableTimer}*60,
|
||||||
name="build-all-branches",
|
name="build-all-branches",
|
||||||
builderNames=[
|
builderNames=[
|
||||||
"build-hosts"
|
"build-hosts"
|
||||||
|
Loading…
Reference in New Issue
Block a user