Well I have something similar
<https://github.com/jenkinsci/pipeline-utility-steps-plugin/blob/master/src/main/java/org/jenkinsci/plugins/pipeline/utility/steps/conf/ReadPropertiesStep.java#L105>
that works for me
<https://github.com/jenkinsci/pipeline-utility-steps-plugin/blob/master/src/test/java/org/jenkinsci/plugins/pipeline/utility/steps/conf/ReadPropertiesStepTest.java#L94>.
But it's just one of the parameters that is a map and I had to do custom
instance creation
<https://github.com/jenkinsci/pipeline-utility-steps-plugin/blob/master/src/main/java/org/jenkinsci/plugins/pipeline/utility/steps/conf/ReadPropertiesStep.java#L127>
.

/B

On Fri, Jun 24, 2016 at 8:11 PM, Jesse Glick <jgl...@cloudbees.com> wrote:

> On Fri, Jun 24, 2016 at 8:39 AM, Paul Allen <pallen.co...@gmail.com>
> wrote:
> > java.lang.ClassCastException:
> sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast
> to java.lang.Class
> >         at
> org.jenkinsci.plugins.workflow.structs.DescribableHelper.coerce(DescribableHelper.java:214)
>
> Probably JENKINS-28510. Generally speaking, Pipeline steps are not
> designed to take arbitrary data types as parameters, only things which
> Jenkins databinding handles: primitives, `Describable`s, and
> `List`s/arrays of the above.
>
> --
> 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 jenkinsci-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr1ipk2j6AL%2B1Zwfa2Oy1fL4fUMNNqpqVApFd6PsDsT0GA%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Robert Sandell
*Software Engineer*
*CloudBees Inc.*

-- 
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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CALzHZS2ahQaxY-ZQPfieU8nL3iuxNCs41d70eFgHG%2BLDZzz-6A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to