Copy job result from slave to client

I’ve written a custom plugin that allows us to submit a lightbake job in unreal engine 4.
This results in a builddata file being generated on the slave, as a last step I want to copy this file to the client who submitted the job. However so far I haven’t managed to do it. All events and scripts seems to be executed on the slave only.

How could I achieve this?

Thanks in advance