Where is jenkins.xml in jenkins docker container

We are using jenkins inside docker (version: FROM jenkins:1.651.1).
We have problems with the html publisher plugin which isn’t executing javascript by default. The same issue as described here.

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

  • Docker swarm cluster and elasticsearch, using constraints to bind a service to a specific node
  • Unable to run docker node.js application
  • Connecting to a USB Android Device in a Docker Container via adb
  • Use zeus with Rails 3 and docker
  • How can I update full description on Docker Hub automatically?
  • Vagrant start docker container after halt
  • Docker: How to use selenium server to do nightwatchJS test?
  • How to delete all tagged docker images?
  • Network communication between Docker images
  • Attach and run a command in a docker container
  • Boot2docker i/o timeout when opening a new terminal session in MacOs X
  • Not able to access tomcat application on Docker VM with host(windows) IP while using docker toolbox
  • 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
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.