Hi,
In the plugin I would like to add new properties which should be set to
default values when upgrading from the older plugin versions.
I've read that it can be done in Jelly, but it only applies to the
situation when Jenkins configuration is saved. In my case after upgrade
values are deserialized from XML configuration which does not have those
values. The new integer field is set to 0 (no entry in XML) which is not
the best value for me. I tried to set default value in code, but it is
overridden when extension instance is created at Jenkins startup.
How can I set a default value to a new plugin configuration property to
be set when Jenkins is restarted after plugin upgrade?
Marcin
--
http://blog.solidsoft.info/ - Working code is not enough