Groups
Groups
Sign in
Groups
Groups
Jenkins Developers
Conversations
About
Send feedback
Help
Is ti possible to know the plugin version and name for the step that has been called in a pipeline?
28 views
Skip to first unread message
Victor Martinez
unread,
Apr 14, 2021, 12:16:47 PM
4/14/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Developers
Hi all,
I'd like to know if there is away to know the plugin and the version associated with that particular step?
I'm using the
https://javadoc.jenkins.io/plugin/workflow-api/org/jenkinsci/plugins/workflow/flow/GraphListener.html
and
https://javadoc.jenkins.io/plugin/workflow-api/org/jenkinsci/plugins/workflow/flow/StepListener.html
but I cannot find how to do it or whether it's feasible
Thanks
Jesse Glick
unread,
Apr 14, 2021, 1:08:18 PM
4/14/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Dev
Via either
https://javadoc.jenkins.io/plugin/workflow-api/org/jenkinsci/plugins/workflow/graph/StepNode.html#getDescriptor--
or
https://javadoc.jenkins.io/plugin/workflow-api/org/jenkinsci/plugins/workflow/flow/StepListener.html#notifyOfNewStep-org.jenkinsci.plugins.workflow.steps.Step-org.jenkinsci.plugins.workflow.steps.StepContext-
you can look up
https://javadoc.jenkins.io/hudson/PluginManager.html#whichPlugin-java.lang.Class-
to find the plugin owning the `Step`. Beware however that in cases of `SimpleBuildStep` or `SimpleBuildWrapper` the `Step` will be from `workflow-basic-steps` but the interesting information is the owner of the `delegate` as in
https://javadoc.jenkins.io/plugin/workflow-step-api/org/jenkinsci/plugins/workflow/steps/StepDescriptor.html#isMetaStep--
(often some freestyle-compatible plugin).
Victor Martinez
unread,
Apr 14, 2021, 2:10:51 PM
4/14/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Developers
That's brilliant. Thanks Jesse :)
Reply all
Reply to author
Forward
0 new messages