Does readResolve help? I would expect you just want to repopulate an
existing string value on load?

Best
Jeff

On Sun, Oct 13, 2019 at 12:01 AM Nikhil Bhoski <[email protected]>
wrote:

> Thanks Jeff,
> i am planning to add dropdown instead of text box from earlier layout
> which will be auto populated from the global tool configuration page.
> Regards
> Nikhil
>
> On Saturday, 12 October 2019 17:51:54 UTC+5:30, Jeff wrote:
>>
>> Are you adding a new field to your global config? I think you might want
>> the readResolve() method.
>>
>> Here's some hints about maintaining backward compatibility
>> https://wiki.jenkins.io/display/JENKINS/Hint+on+retaining+backward+compatibility
>>
>> Best
>> Jeff
>>
>> On Sat, Oct 12, 2019 at 4:36 AM Nikhil Bhoski <[email protected]>
>> wrote:
>>
>>> Hi Guys ,
>>>
>>> I have plugin with few input parameters. one of the parameter which
>>> accepts installation path of a 3 rd party tool from user. Now in new
>>> version i am planning to add those installation through global tool config
>>> area and then auto populate during build as dropdown selection. I want to
>>> make sure when i make these changes and release it, existing users need not
>>> to reconfigure their jobs. i want my plugin to identify if old config.xml
>>> present . and if it is present then automatically add the path in tools
>>> section and populate the same as default under my build. please guide me if
>>> this auto upgrade is possible. i came across some method like readResolve()
>>> but did not understand fully.
>>>
>>> Nikhil
>>>
>>> --
>>> 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/c0d217b2-1d75-46bc-b4b9-d68eec14db05%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jenkinsci-dev/c0d217b2-1d75-46bc-b4b9-d68eec14db05%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> 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/711c7bcc-0220-4532-b19c-040f696b3dac%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-dev/711c7bcc-0220-4532-b19c-040f696b3dac%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CADVhPTp47h-5Z%2BJ9Bu-KQjpCNGNV%2BY94JsWo%2BEXD5pxaQHeRmw%40mail.gmail.com.

Reply via email to