Interrupting a synchronous remote call should `Thread.interrupt` the corresponding thread on the remote side.
I'm working on a plugin (builder) that I want to make compatible with master/slave setup and looks like if a user cancels the build from the master my plugin does not get interrupted and still gets executed until the end and only then the job is marked as canceled even tough it still finished doing everything.
The flow of the plugin is basically like this:
deployCallable is an instance of a inner class described bellow:
In this case the problem is that that if I click cancel on the job it still runs until the build step is finished and all files are zipped and uploaded and only then it marks the build as aborted.