If you use `File`, your plug-in won't be able to run on a slave, only onto the master. What you can do is use the `AbstractBuild.getWorkspace()` or similar, and the associated `FilePath` API, which enables IO in a distributed environment.