Where is jenkins.xml in jenkins docker container
We want to change our
jenkins.xml (just like they said) to change it’s configuration. The problem is the fact we can’t find it inside our container. Does it has another name inside the docker container or where can we find it? Thanks
One Solution collect form web for “Where is jenkins.xml in jenkins docker container”
The jenkins docker image does not contain a jenkins.xml. This looks to be a windows specific file.
$ docker run --rm jenkins find / -name 'jenkins.xml' 2>/dev/null # returns nothing
/usr/local/bin/jenkins.sh is run when a jenkins container is started. This contains the line:
eval "exec java $JAVA_OPTS -jar /usr/share/jenkins/jenkins.war $JENKINS_OPTS \"\$@\""
Therefore try setting the required setting in JENKINS_OPTS:
docker run -e JENKINS_OPTS="hudson.model.DirectoryBrowserSupport.CSP=" jenkins