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-compose volumes doesn't copy any files
  • How to assign public port to port 5900 in docker-compose
  • How do we get something unique like pod id or container id in kubernetes deployment yamls
  • Remote `docker-compose build`: workaround slow connections
  • Storing secret env variables as separate data container in Docker
  • nginx doesnt see updated static content
  • List images created by Docker for Mac using Docker Toolbox
  • how to listen docker events and run command when new event emit?
  • Flannel network partitions
  • How to execute the Entrypoint of a Docker images at each “exec” command?
  • Configuration or option in docker run to fail if host volume has no write pemissions
  • Running and debugging tests in a Docker container
  • 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.