Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-25779

DescribableHelper.uninstantiate should omit default values of @DataBoundSetter fields

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • pipeline

      If given a bean from a class that has at least one @DataBoundSetter, uninstantiate should create another bean using the @DataBoundConstructor and the same constructor parameters, then compare the values of the setter fields. If any are equals to the values from the "control" bean, omit them in the map.

      This would be useful for example for omitting changelog: true from git in the snippet generator.

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: