I hit an issue with Lockable resources plugin (2.8) together with JCasC configuration (Jenkins 2.277.2).
We define our resources in JCasC and then some of our jobs are locking and releasing these statically defined resources.
Unfortunately every time the JCasC configuration is reloaded it resets/release all reservations of resources. I don't set the reservedBy field in our JCasC, in that way I was hoping that it will not touch that value, but that is not a case.
I also tried to set reservedBy to null, if it helps but unfortunately it doesn't.
Maybe I am doing something wrong. What can I do to persist current status of reserved resources?