git.iko.soy/typeable/nixpkgs
on master help sign in
gocd-server: add startupOptions, empty extraOptions

The extraOptions option has default values which seems surprising. This moves those values to startupOptions (which is what gocd-agent uses) and empties out the default extraOptions. The gocd-agent startupOptions description was also changed to remove the mention of the example (given there isn't one).

commite9342310297beb705d3bcf5caf1ad9a4ac59f392 authorTom von Schwerdtner <tomvons@gmail.com> dateSat 10 Sep 2016, 17:41 (10 years ago) parentffddcc8
2 files changed+13−3
nixos/modules/services/continuous-integration/gocd-agent/default.nix+1−1 nixos/modules/services/continuous-integration/gocd-server/default.nix+12−2
nixos/modules/services/continuous-integration/gocd-agent/default.nix+1−1
@@ -98,7 +98,7 @@ in {
9898 ];
9999 description = ''
100100 Specifies startup command line arguments to pass to Go.CD agent
101− java process. Example contains debug and gcLog arguments.
101+ java process.
102102 '';
103103 };
104104
nixos/modules/services/continuous-integration/gocd-server/default.nix+12−2
@@ -90,7 +90,7 @@ in {
9090 '';
9191 };
9292
93− extraOptions = mkOption {
93+ startupOptions = mkOption {
9494 default = [
9595 "-Xms${cfg.initialJavaHeapSize}"
9696 "-Xmx${cfg.maxJavaHeapMemory}"
@@ -103,6 +103,15 @@ in {
103103 "-Dcruise.server.port=${toString cfg.port}"
104104 "-Dcruise.server.ssl.port=${toString cfg.sslPort}"
105105 ];
106+
107+ description = ''
108+ Specifies startup command line arguments to pass to Go.CD server
109+ java process.
110+ '';
111+ };
112+
113+ extraOptions = mkOption {
114+ default = [ ];
106115 example = [
107116 "-X debug"
108117 "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
@@ -169,7 +178,8 @@ in {
169178
170179 script = ''
171180 ${pkgs.git}/bin/git config --global --add http.sslCAinfo /etc/ssl/certs/ca-certificates.crt
172− ${pkgs.jre}/bin/java -server ${concatStringsSep " " cfg.extraOptions} \
181+ ${pkgs.jre}/bin/java -server ${concatStringsSep " " cfg.startupOptions} \
182+ ${concatStringsSep " " cfg.extraOptions} \
173183 -jar ${pkgs.gocd-server}/go-server/go.jar
174184 '';
175185