Hi there,
I am currently working on a Docker image, that is derived from jenkins:alpine.
In my Dockerfile I copy a config.xml in the the reference content directory (/usr/share/jenkins/ref) and add some xml content with Ansible-XML. (The content added, is a cloud configuration for a Docker host)
After starting my container, I can see my config.xml in /var/jenkins_home for a couple of seconds.
After that, it is overwritten with a default config.xml. This seems to happen, some time during the start of the server. The problem cannot even be solved by using the filename config.xml.override, as suggested in the docs of the official docker image.
Weirdly, I can’t reproduce this error, when I start Jenkins without docker. In that case, my custom config.xml is kept as is on the first start of Jenkins.
Does anyone have an idea, why this happens?
Thanks and best regards
Stefan Rademacher