Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 625238

Summary: =dev-util/jenkins-bin-2.67: unable to configure custom JENKINS_JAVA_OPTIONS
Product: Gentoo Linux Reporter: Oleg Hoefling <oleg.hoefling>
Component: Current packagesAssignee: Patrick Lauer <patrick>
Status: UNCONFIRMED ---    
Severity: normal CC: jstein, oleg.hoefling
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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