Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 625238 - =dev-util/jenkins-bin-2.67: unable to configure custom JENKINS_JAVA_OPTIONS
Summary: =dev-util/jenkins-bin-2.67: unable to configure custom JENKINS_JAVA_OPTIONS
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-15 19:00 UTC by Oleg Hoefling
Modified: 2017-07-20 18:46 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Hoefling 2017-07-15 19:00:25 UTC
In file /etc/conf.d/jenkins, I'm adding a JVM property to boot Jenkins with:

> JENKINS_JAVA_OPTIONS="-Dhudson.model.DirectoryBrowserSupport.CSP=\"style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline'; img-src data:;\" -Djava.awt.headless=true"

With it, I can't start Jenkins service anymore:

> $ service jenkins restart
> $ rc-service jenkins status
> * status: crashed

However, starting plain Jenkins with the same args works:

> $ java -Dhudson.model.DirectoryBrowserSupport.CSP="style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline'; img-src data:;" -Djava.awt.headless=true -DJENKINS_HOME=/var/lib/jenkins/home -jar /opt/jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --httpPort=8080 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20