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}
|
${replacePlugins}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# For reference: https://wiki.jenkins.io/display/JENKINS/JenkinsLinuxStartupScript
|
||||||
script = ''
|
script = ''
|
||||||
${pkgs.jdk}/bin/java ${concatStringsSep " " cfg.extraJavaOptions} -jar ${cfg.package}/webapps/jenkins.war --httpListenAddress=${cfg.listenAddress} \
|
${pkgs.jdk}/bin/java ${concatStringsSep " " cfg.extraJavaOptions} -jar ${cfg.package}/webapps/jenkins.war --httpListenAddress=${cfg.listenAddress} \
|
||||||
--httpPort=${toString cfg.port} \
|
--httpPort=${toString cfg.port} \
|
||||||
--prefix=${cfg.prefix} \
|
--prefix=${cfg.prefix} \
|
||||||
|
-Djava.awt.headless=true \
|
||||||
${concatStringsSep " " cfg.extraOptions}
|
${concatStringsSep " " cfg.extraOptions}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user