An interface used for executing a piece of code remotely.
Notes:
- The class that implements this interface needs to be cautious about
platform path differences. A path passed to this class to executed on a
remote system with different OS styles, especially a Windows master and
Unix agents, will need to be converted. This can be done by calling
Utilities.convertPath from inside the implementation of the call method.
The path conversion should be called no matter the actual platform. The
path conversion call does nothing if no conversion is needed.
- The only RunContext methods available to the code block are the local
exec and java calls. All other calls to RunContext will result in a
NullPointerException.