>
>
> https://javadoc.jenkins.io/plugin/workflow-api/org/jenkinsci/plugins/workflow/actions/WorkspaceAction.html#getNode--
>  
> ought to tell you the name of the agent running a `node` block, or the 
> empty string in the case of a controller executor (typically ill-advised).
>

That's exactly where I started, and you know, I think that's my mistake. 
I'm working in a plugin with mvn hpi:run, which only has the single 
controller node. I thought I was getting an empty string because the 
information wasn't there at all, when in fact the empty string was probably 
indicated exactly what I should have expected - that my node{} block was 
running on the controller.


 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" 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-dev/38d56bb3-ff68-4433-8ff1-6431fe055ecbn%40googlegroups.com.

Reply via email to