Thanks, Jesse! workspace.toComputer().getNode()
...solves the issue! On Thursday, November 12, 2015 at 7:31:42 PM UTC+1, Jesse Glick wrote: > > On Thu, Nov 12, 2015 at 9:45 AM, Rafael Ribeiro Rezende > <[email protected] <javascript:>> wrote: > > Is it a bug? misconfiguration? or I'm not expected to use this command > with workflow at all? > > You should not rely on `Computer.currentComputer` inside > `SimpleBuildStep.perform`. You can get the `Node`/`Computer` from the > `FilePath workspace` (which will work for freestyle builds, too). > Looks like > > > https://github.com/jenkinsci/workflow-plugin/blob/master/COMPATIBILITY.md#build-steps > > > needs to be updated to call that out explicitly. > -- 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/da64470f-19d3-42a8-9290-e6f26f8253c3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
