On 14/01/2015 21:20, Mikhail Vassiliev wrote:
Hello,
I have searched through the entire email group and did not find an
answer on my question.
I would like to use “External Resource Dispatcher plugin” in my
workflow test job. The idea is to connect several devices to Jenkins
slaves, configure the corresponding resources in the nodes that match
to the slaves, and use the resources in the workflow test job.
According to the “External Resource Dispatcher plugin” description, I
can obtain the plugin’s extension and lock a resource using the
following code:
def manager = extension.'externalresource-dispatcher'
manager.lock(...)
But Workflow component does not understand the code. How can I obtain
a plugin’s extension from Workflow Groovy CPS DSL script?
Currently you can't. Plugins must be aware of the workflow plugin and
implement some code for it. The above snippet is for the build-flow
plugin which is a different plugin.
/James
--
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/54B7810D.4090600%40teilo.net.
For more options, visit https://groups.google.com/d/optout.