I am using a Publisher extending Publisher.
This looks promising. I discovered a stackoverflow thread with a bit of code doing a smiliar thing (
http://stackoverflow.com/questions/9279898/can-hudson-slaves-run-plugins).
Whats the difference between launcher.getChannel().call(task); and build.getWorkspace().act(task)? The JavaDoc of the latter looks promising.
What I am wondering now, is which Caller to use. There is a FilePath.FileCallable, where the JavaDoc says "Subtypes would likely want to extend from either {@link MasterToSlaveCallable}* or {@link SlaveToMasterFileCallable}."
I would use MasterToSlaveCallable now, does this work on the master then as well? Or do I have to detect somehow if I am running on a master or a slave?
Thank you very much,