Loss of configuration after Jenkins restart

Good afternoon,

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:

helm upgrade --wait --timeout 300s jenkins jenkins jenkinsci/jenkins --namespace jenkins --values 02b-jenkins-values.yaml

By doing this and then restarting Jenkins, the modifications persist and are not deleted.

Why does this happen?

Best regards,


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.

And I like it, because I know when i reboot jenkins it starts always with correct settings. :wink:

1 Like

Hi Jorge,

What values have you changed in jenkins-values.yaml file to persist “Project-based Matrix Authorization Strategy” data after restart of jenkins ?

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.