Hudson supports building on distributed machines, and the SCM plugin must be able to be executed on other machines than the master. There are two ways to add support for remoting for a SCM, either through a third party library or interacting with a command-line client. Depending on what type of interaction the SCM plugin uses it will deal with remoting in two separate ways.
Since all code is being executed on the master machine, the SCM must tell Hudson what code that should be executed on the slave. To do that you need to put the code into a Callable class and supply it to the FilePath.act(Callable) method.
The Launcher class hides the difference between running programs locally vs remotely.
Skip to end of metadata Go to start of metadata