I need the current node to resolve NodeSpecific ToolInstallation during SCM
polling
(clearcase, working on JENKINS-14247)

clearcase plugin uses Computer.currentComputer().getNode(), and fall into a
NullPointer when master is configure to have 0 executors
currentComputer javadoc says "This method only works when called during a
build", so it probably don't make sense to use it during polling.

SCM#calcRevisionsFromBuild give me a Launcher
"Abstraction of the machine where the polling will take place"
but Launcher.getComputer is deprecated and unsafe according to javadoc to
retrieve the node
anyway it seems to work in this case,
any better suggestion ?

Reply via email to