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 copy misses some files
  • docker: certificate signed by unknown authority even though proxy and --insecure-registry set
  • Limitations in Mesos and Marathon Regarding Docker
  • Unable to start a Docker container through Remote Docker Java API
  • Environment variables and @Value can't work together on Spring Boot
  • ERROR: (gcloud.preview) Invalid choice: 'docker'. Did you mean 'dm-v2'?
  • Docker image versioning and lifecycle management
  • Is there a way to add a prompt during the docker build process?
  • Docker-compose hanging on pulling image where Dockerfile doesn't
  • Docker running Windows applications
  • How can i keep crontab in file in ubuntu docker
  • Docker and Puppet
  • 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.