forked from mirrors/nixpkgs
jenkins: Add "java.awt.headless=true" to JDK options.
This is consistent with the recommended jenkins startup script. See: * https://wiki.jenkins.io/display/JENKINS/JenkinsLinuxStartupScript
This commit is contained in:
parent
241160aacc
commit
28a55f5bd6
|
@ -205,10 +205,12 @@ in {
|
|||
${replacePlugins}
|
||||
'';
|
||||
|
||||
# For reference: https://wiki.jenkins.io/display/JENKINS/JenkinsLinuxStartupScript
|
||||
script = ''
|
||||
${pkgs.jdk}/bin/java ${concatStringsSep " " cfg.extraJavaOptions} -jar ${cfg.package}/webapps/jenkins.war --httpListenAddress=${cfg.listenAddress} \
|
||||
--httpPort=${toString cfg.port} \
|
||||
--prefix=${cfg.prefix} \
|
||||
-Djava.awt.headless=true \
|
||||
${concatStringsSep " " cfg.extraOptions}
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue