lol

Merge pull request #18500 from tvon/fix/gocd-server-options

gocd-server: add startupOptions, empty extraOptions

authored by

Joachim F and committed by
GitHub
c571a7f2 09646cc8

+13 -3
+1 -1
nixos/modules/services/continuous-integration/gocd-agent/default.nix
··· 98 ]; 99 description = '' 100 Specifies startup command line arguments to pass to Go.CD agent 101 - java process. Example contains debug and gcLog arguments. 102 ''; 103 }; 104
··· 98 ]; 99 description = '' 100 Specifies startup command line arguments to pass to Go.CD agent 101 + java process. 102 ''; 103 }; 104
+12 -2
nixos/modules/services/continuous-integration/gocd-server/default.nix
··· 90 ''; 91 }; 92 93 - extraOptions = mkOption { 94 default = [ 95 "-Xms${cfg.initialJavaHeapSize}" 96 "-Xmx${cfg.maxJavaHeapMemory}" ··· 103 "-Dcruise.server.port=${toString cfg.port}" 104 "-Dcruise.server.ssl.port=${toString cfg.sslPort}" 105 ]; 106 example = [ 107 "-X debug" 108 "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005" ··· 169 170 script = '' 171 ${pkgs.git}/bin/git config --global --add http.sslCAinfo /etc/ssl/certs/ca-certificates.crt 172 - ${pkgs.jre}/bin/java -server ${concatStringsSep " " cfg.extraOptions} \ 173 -jar ${pkgs.gocd-server}/go-server/go.jar 174 ''; 175
··· 90 ''; 91 }; 92 93 + startupOptions = mkOption { 94 default = [ 95 "-Xms${cfg.initialJavaHeapSize}" 96 "-Xmx${cfg.maxJavaHeapMemory}" ··· 103 "-Dcruise.server.port=${toString cfg.port}" 104 "-Dcruise.server.ssl.port=${toString cfg.sslPort}" 105 ]; 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 = [ ]; 115 example = [ 116 "-X debug" 117 "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005" ··· 178 179 script = '' 180 ${pkgs.git}/bin/git config --global --add http.sslCAinfo /etc/ssl/certs/ca-certificates.crt 181 + ${pkgs.jre}/bin/java -server ${concatStringsSep " " cfg.startupOptions} \ 182 + ${concatStringsSep " " cfg.extraOptions} \ 183 -jar ${pkgs.gocd-server}/go-server/go.jar 184 ''; 185