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.

In Jenkins.java 
(https://github.com/jenkinsci/jenkins/blob/3e2e01717976a1f1221874bfd576429c5c48b8a6/core/src/main/java/jenkins/model/Jenkins.java#L3015)
 I can’t find anything, that explains the overwriting of my config.xml.

Does anyone have an idea, why this happens?

Thanks and best regards
Stefan Rademacher

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3CA43885-85DD-4530-9FC8-9F2465F949FD%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to