Thanks, Stephen. nice approach. but what to do if I just moved some fields 
from one job property to another new one (not swapping them entirely)

On Tuesday, July 29, 2014 6:36:30 PM UTC+4, Stephen Connolly wrote:
>
> Note that you need to be swapping like for like... you can swap one 
> Publisher for another Publisher, but you cannot swap a Publisher for a 
> JobProperty
>
>
> On 29 July 2014 15:35, Stephen Connolly <[email protected] 
> <javascript:>> wrote:
>
>> If you are swapping one JobProperty for another just have readResolve 
>> return the correctly configured new JobProperty, e.g. see similar 
>> https://github.com/jenkinsci/cloudbees-deployer-plugin/blob/master/src/main/java/org/jenkins/plugins/cloudbees/CloudbeesPublisher.java#L102
>>  
>>
>> On 29 July 2014 14:25, <[email protected] <javascript:>> wrote:
>>
>>> thanks, slide. I have already gone through it. but I can't figure out 
>>> the final solution of issue - 
>>> so I can mark fields as transient and check their values at readResolve, 
>>> what then? how to move these values to new job property?
>>>
>>> вторник, 29 июля 2014 г., 16:36:08 UTC+4 пользователь slide написал:
>>>>
>>>> This page, [1], has some good tips.
>>>>
>>>> slide
>>>>
>>>> 1 - https://wiki.jenkins-ci.org/display/JENKINS/Hint+on+
>>>> retaining+backward+compatibility
>>>>
>>>>
>>>> On Tue, Jul 29, 2014 at 5:30 AM, <[email protected]> wrote:
>>>>
>>>>>  Hi, everyone. Could you please advice me what to do at the following 
>>>>> case:
>>>>>
>>>>> I have one JobProperty at the old version of plugin. after some 
>>>>> refactoring I have created another one job property and moved attributes 
>>>>> from old job property to new one.
>>>>> the issue is how to upgrade old job configurations to new one 
>>>>> seamlessly?
>>>>>
>>>>> thanks in advance
>>>>>
>>>>>
>>>>>
>>>>>  -- 
>>>>> 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].
>>>>>
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>
>>>>
>>>> -- 
>>>> Website: http://earl-of-code.com 
>>>>
>>>  -- 
>>> 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] <javascript:>.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to