I would try DescribableModel#instantiate(Map) from the Structs Plugin: https://github.com/jenkinsci/structs-plugin/blob/structs-parent-1.5/plugin/src/main/java/org/jenkinsci/plugins/structs/describable/DescribableModel.java#L234-L261
On Mon, Jan 16, 2017 at 10:32 PM, Kanstantsin Shautsou < [email protected]> wrote: > Is it possible to instantiate object (i guess only describables) for > example from yaml. Let's assume that some Describable has Symbol annotation > and contains some other fields. > And some yaml > describable1: > describable2: > someList : [one, two] > What is required to materialise it? Crazy stapler logic or there is > something easier? > > -- > 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/3341ab82-a7b0-41ca-aee4-0d4c70228ed3% > 40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-dev/3341ab82-a7b0-41ca-aee4-0d4c70228ed3%40googlegroups.com?utm_medium=email&utm_source=footer> > . > 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAKqW32AKHZVy3A12m-TP2Azx_5MZ5rSTO%2Bc0jiNGtQT-uT3v_Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
