> On 22.04.2016, at 23:06, Marcin Zajączkowski <[email protected]> wrote:
> 
> How can I set a default value to a new plugin configuration property to
> be set when Jenkins is restarted after plugin upgrade?

To do this when your object is loaded, use readResolve, and if null, set 
whatever the new default is. Needs a nullable field to work, of course.

More here: 
https://wiki.jenkins-ci.org/display/JENKINS/Hint+on+retaining+backward+compatibility

-- 
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/9DA32B4C-773A-457C-8BE5-65A58175069B%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to