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 -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/571A9242.40302%40wp.pl. For more options, visit https://groups.google.com/d/optout.
