Can you provide further information on how on how to call my async Step from within the Builder's perform() method ?
I am not able to create a valid StepContext to be passed into the Step's start() method. On Friday, February 1, 2019 at 12:07:06 PM UTC-8, slide wrote: > > Implementing a Builder and extending SimpleBuildStep is the way to go. > > On Fri, Feb 1, 2019, 12:51 <felipe...@gmail.com <javascript:> 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 jenkinsci-use...@googlegroups.com <javascript:>. >> 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a800e662-4f48-41cf-979e-94515d40b4c1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.