I answered on the Job DSL list: https://groups.google.com/d/msg/job-dsl-plugin/qO7asEPCndo/nzwUhAD_BQAJ
On Thu, Oct 22, 2015 at 12:30 AM, Dan Alvizu <[email protected]> wrote: > Hi, > > > I am using the Job DSL plugin on my project. I have a proprietary plugin, > part of which is > > a provider of parameters for the parameterized-trigger plugin. This allows > me to trigger > > a deployment with properties specified by my plugin: > > > ``` > > * public class *MyCustomBuildParameters > *extends * > hudson.plugins.parameterizedtrigger.AbstractBuildParameters > { > > // ... > > @Extension > * public static class *DescriptorImpl *extends * > Descriptor<AbstractBuildParameters> > { > > // ... > > } > > } > > ``` > > > This works great in the UI - I would like to be able to specify this > somehow as part of a job DSL: > > > ``` > > job('example') { > > > > publishers { > > // ... > > downstreamParameterized{ > > trigger('') { > > *myCustomParameters()* > > } > > } > > } > > } > > ``` > > > However it's not clear to me from reading the wiki how this would be done: > > > https://github.com/jenkinsci/job-dsl-plugin/wiki/Extending-the-DSL > > > The context of downstreamParameterized() ( > javaposse.jobdsl.dsl.helpers.common.DownstreamTriggerParameterContext) is > not marked as an ExtensibleContext, so I cannot simply add a > ContextExtension point and a method with @DslExtensionMethod, as I could > if this were the PublisherContext. > > > Is there an example out there I can reference, or can someone please point > me in the right direction? > > > 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/8d834961-ff42-4e02-99b1-1108835b1fe7%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-dev/8d834961-ff42-4e02-99b1-1108835b1fe7%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/CAKqW32CNkvjyEZf9YkPrRF50%2B4x6_n-zr5aLQwZBBPyau2XMcQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
