Adding DeclarativeOption to plugin

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Adding DeclarativeOption to plugin

jxpearce
I'm trying to implement a new option for declarative pipeline for a plugin. I'm able to use the option in my script, but I can't figure out how to access it from my plugin.

The main part of the plugin is a GraphListener - can someone point me in the right direction how I can see whether my option is set from onNewHead(FlowNode fn)?

Thanks
Jeff

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/8d70b37c-5a8b-4fc4-8b7c-4cef85e636f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Adding DeclarativeOption to plugin

Jesse Glick-4
On Mon, Oct 2, 2017 at 3:01 PM,  <[hidden email]> wrote:
> I'm trying to implement a new option for declarative pipeline for a plugin.

Are you positive this must be specific to Declarative and not, say, an
`OptionalJobProperty`?

If so, sorry but I cannot help you. Perhaps someone else can.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr1sfvtps2tC7YiD8OSCq29BZxY1Dszopf3FVtKJinG7tQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Adding DeclarativeOption to plugin

jxpearce
Hmm, that might actually be a better option - Thanks!

Jeff

On 10/4/17, 9:20 AM, "[hidden email] on behalf of Jesse Glick" <[hidden email] on behalf of [hidden email]> wrote:

    On Mon, Oct 2, 2017 at 3:01 PM,  <[hidden email]> wrote:
    > I'm trying to implement a new option for declarative pipeline for a plugin.
   
    Are you positive this must be specific to Declarative and not, say, an
    `OptionalJobProperty`?
   
    If so, sorry but I cannot help you. Perhaps someone else can.
   
    --
    You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
    To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/PfeoGxp9pOQ/unsubscribe.
    To unsubscribe from this group and all its topics, send an email to [hidden email].
    To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr1sfvtps2tC7YiD8OSCq29BZxY1Dszopf3FVtKJinG7tQ%40mail.gmail.com.
    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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/7C980F7B-BFC1-4772-90E9-196B51EAC795%40godaddy.com.
For more options, visit https://groups.google.com/d/optout.