On 2016-04-22 23:13, Daniel Beck wrote:
> 
>> 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

That looks like something I need. Thanks Daniel.

Marcin

-- 
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/571A966C.4070402%40wp.pl.
For more options, visit https://groups.google.com/d/optout.

Reply via email to