nixos/jenkins: add services.jenkins.extraOpts option

Allows passing extra command line arguments to Jenkins.
This commit is contained in:
Bjørn Forsman 2014-09-09 17:34:49 +02:00
parent 4ae3e32e82
commit cf7b782ea9

View File

@ -63,6 +63,15 @@ in {
The environment will always include JENKINS_HOME. The environment will always include JENKINS_HOME.
''; '';
}; };
extraOpts = mkOption {
type = types.listOf types.str;
default = [ ];
example = [ "--debug=9" "--httpListenAddress=localhost" ];
description = ''
Additional command line arguments to pass to Jenkins.
'';
};
}; };
}; };
@ -94,7 +103,7 @@ in {
path = cfg.packages; path = cfg.packages;
script = '' script = ''
${pkgs.jdk}/bin/java -jar ${pkgs.jenkins} --httpPort=${toString cfg.port} ${pkgs.jdk}/bin/java -jar ${pkgs.jenkins} --httpPort=${toString cfg.port} ${concatStringsSep " " cfg.extraOpts}
''; '';
postStart = '' postStart = ''