workflow-step-api async step in freestyle projects

17 views
Skip to first unread message

felipe...@gmail.com

unread,
Feb 1, 2019, 2:52:02 PM2/1/19
to Jenkins Users
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 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 for form validation, completion, and so on. "

Thanks in advance

Slide

unread,
Feb 1, 2019, 3:07:06 PM2/1/19
to Jenkins User Mailing List
Implementing a Builder and extending SimpleBuildStep is the way to go.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a610b134-936d-46f0-90a2-4a065234ba0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

felipe...@gmail.com

unread,
Feb 1, 2019, 8:55:55 PM2/1/19
to Jenkins Users
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.
Reply all
Reply to author
Forward
0 new messages