【发布时间】:2021-08-31 20:58:48
【问题描述】:
jenkins 自定义 jenkins 插件代码无法从从机读取文件。它正在抛出 FileNotFound 异常。
FilePath filePath = build.getWorkspace();
boolean isRemoteExecution = filePath.isRemote();
if (isRemoteExecution) {
Callable<StringBuilder, IOException> callable = executeComparison(currentBuildInfo, benchmarkBuildInfo,
previousSuccessfulBuildNumber, histogramBuildInfoList, workspaceFolder, jobName, taskListener);
VirtualChannel channel = launcher.getChannel();
channel.call(callable);
}
【问题讨论】:
-
以上代码中的executeComparison方法如下
标签: jenkins-plugins master-slave