We are modifying the security permissions in “Configure Global Security”, adding groups, removing users, etc, all using the “Project-based Matrix Authorization Strategy” authorisation option.
When we make modifications and Jenkins restarts, all the information of the configuration that has been modified is lost and the configuration that was there before remains.
We have solved this by updating Jenkins with the configuration file values.yaml. For example:
There are several pieces of the puzzle missing in the description of your setup, but from the looks of it you are using JCasc to manage the configuration of your instance.
Jenkins will apply the JCasc configuration at startup and therefore override any manual configuration you did in the UI.
how can i restore the configurations that i made through the UI. I want those changes to be persisted, i see the changes are made in the config.xml but when everything gets deleted once i restart it.