The improvements in PR #36 only worked for master-only setups. Agents were utterly broken.
The mistake was to use java.nio.Paths instead of hudson.FilePath. Jenkins plugins need to use the latter because that class manages files in remote agents (which is the case).
This PR replaces the local-only file classes with Jenkins' FilePath.
The improvements in PR #36 only worked for master-only setups. Agents were utterly broken.
The mistake was to use
java.nio.Paths
instead ofhudson.FilePath
. Jenkins plugins need to use the latter because that class manages files in remote agents (which is the case).This PR replaces the local-only file classes with Jenkins' FilePath.