git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #18500 from tvon/fix/gocd-server-options

gocd-server: add startupOptions, empty extraOptions

commitc571a7f221086b0eddc137e0083fcf17f67ca6f8 authorJoachim F <joachifm@users.noreply.github.com> dateThu 15 Sep 2016, 13:24 (10 years ago) parent09646cce934231
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