Implementing a Builder and extending SimpleBuildStep is the way to go. On Fri, Feb 1, 2019, 12:51 <[email protected] wrote:
> Hello, > > I've create a plugin that extends from Step/StepExecution and provides an > asynchronous step, that waits for a callback to be triggered before > proceeding (similar to webhook-step API plugin). > > It works great with Pipelines, but I wonder if there is any way to make it > work with Freestyle projects as well? > > I thought about extending a Builder and implementing SimpleBuildStep, then > calling the asynchronous Step from within my builder. > > But I have no clue if this is a good potential path, so looking for any > guidance you can provide. > > The Step javadoc provides the following information, which made it more > confusing to me: > > "Extends from Describable > <https://javadoc.jenkins.io/hudson/model/Describable.html?is-external=true> to > support UI-based instantiation. Your step should have a config.jelly allowing > a user to configure its properties, and may have a help.html and/or > help-fieldName.html, plus doEtc methods on the StepDescriptor > <https://javadoc.jenkins.io/plugin/workflow-step-api/org/jenkinsci/plugins/workflow/steps/StepDescriptor.html> > for > form validation, completion, and so on. " > > Thanks in advance > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" 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-users/a610b134-936d-46f0-90a2-4a065234ba0d%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/a610b134-936d-46f0-90a2-4a065234ba0d%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 Users" 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-users/CAPiUgVeuzd2PFJGqbz1ZMZK9j6J4dSWHHQeFAceuCdON-QkGaQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
