Ah yes, that's gonna be a tricky one.
The problem is that the databound constructor no longer has a parameter
named "glob". changeset "something*" should still work fine I guess, but
since there is no databound constructor with that parameter or a databound
setter with the name setGlob it fails. But just adding a @DataboundSetter
setGlob(String glob) {pattern = glob;} won't solve it either since there is
now another mandatory parameter named "pattern" that must be passed. And
removing the databound constructor will break the changeset "something*"
calls.
Maybe there is something in the descriptor that can be overridden to
manually handle the various scenarios, like overriding configure or
newInstance but I don't remember if that is possible on the top of my head.
Den tis 10 dec. 2019 kl 20:45 skrev Victor Martinez <
[email protected]>:
> Hi there,
>
> I thought the readResolve
> <https://wiki.jenkins.io/display/JENKINS/Hint+on+retaining+backward+compatibility>
> might be the way to go but apparently I missed something and then there are
> no backward compatible for the when changeset
> <https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/366> and
> likely the same for the
> <https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/366>when
> branch
> <https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/351> in
> the declarative pipeline syntax. See the comment in
> https://issues.jenkins-ci.org/browse/JENKINS-60217?focusedCommentId=381168&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-381168
> as
> it did report a breaking change.
>
> I'd like to ask you what are the bits and pieces I missed and some
> suggestions to validate this somehow automatically with some testing.
>
> Thanks
>
> --
> 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/6cd3a4d5-8b36-4fd3-91e2-b0629d0f6856%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-dev/6cd3a4d5-8b36-4fd3-91e2-b0629d0f6856%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
*Robert Sandell*
Software Engineer
CloudBees, Inc.
[image: CloudBees-Logo.png] <http://www.cloudbees.com/>
E: [email protected]
Twitter: robert_sandell
--
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/CALzHZS2AG04vvYOqo49a9T%2B3-UwCqXOSyjuCCOayfuVA3pmuAw%40mail.gmail.com.