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/CADVhPTq9WYUDX8gprbLwb1k-F1zCigFGf1ZQoiRgsxeA2ZZ77Q%40mail.gmail.com.
