# Config.xml changes are not persistent

**URL:** <https://community.jenkins.io/t/config-xml-changes-are-not-persistent/34067>\
**Category:** Using Jenkins\
**Tags:** question\
**Created:** [July 18, 2025, 1:04pm UTC](https://community.jenkins.io/t/config-xml-changes-are-not-persistent/34067 "2025-07-18T13:04:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![T39](https://avatars.discourse-cdn.com/v4/letter/t/c6cbf5/32.png) [@T39](https://community.jenkins.io/u/T39)\
**Post date:** [July 18, 2025, 1:04pm UTC](https://community.jenkins.io/t/config-xml-changes-are-not-persistent/34067/1 "2025-07-18T13:04:52Z")

</div>

Jenkins version: Jenkins 2.504.2

Jenkins installed on OCP, fresh installation from scratches. i’m trying to set authentication and setting “security realms” as Active Directory (plugin version 2.40) but, as soon as i apply and refresh the page changes get reverted to “Login with openshift”. Modifying directly the config.xml doesnt work either

---

<div class="post-metadata">

**Author:** ![Spijker](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@Spijker](https://community.jenkins.io/u/Spijker)\
**Post date:** [July 21, 2025, 10:24am UTC](https://community.jenkins.io/t/config-xml-changes-are-not-persistent/34067/2 "2025-07-21T10:24:11Z")

</div>

Make sure you “reload” jenkins after changes to config.xml and do not use a “restart”, as a restart can cause the config.xml to be rewritten with the in-memory values

Note\*  
Assuming you are not using the GUI and directly modifying the config.xml

---

<div class="post-metadata">

**Author:** ![Spijker](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@Spijker](https://community.jenkins.io/u/Spijker)\
**Post date:** [July 21, 2025, 10:28am UTC](https://community.jenkins.io/t/config-xml-changes-are-not-persistent/34067/3 "2025-07-21T10:28:58Z")

</div>

Another option can be that the configuration\_as\_code is configured in such a way it restores any manual changes back to a preset configuration

---

<div class="post-metadata">

**Author:** ![T39](https://avatars.discourse-cdn.com/v4/letter/t/c6cbf5/32.png) [@T39](https://community.jenkins.io/u/T39)\
**Post date:** [July 22, 2025, 10:36am UTC](https://community.jenkins.io/t/config-xml-changes-are-not-persistent/34067/4 "2025-07-22T10:36:30Z")

</div>

I wasnt aware of the reload function of Jenkins, thanks for let me know about it; didnt work out sadly. I’ve tried from GUI and directly from config.xml, i’ll dwelve deeper into CaC and see if there’s anything wrong on it.
