use of hudson.model.FileParameterValue in project blueocean-plugin by jenkinsci.
the class PipelineStepImpl method convert.
private Object convert(String name, ParameterValue v) throws IOException, InterruptedException {
if (v instanceof FileParameterValue) {
FileParameterValue fv = (FileParameterValue) v;
FilePath fp = new FilePath(node.getRun().getRootDir()).child(name);
fp.copyFrom(fv.getFile());
return fp;
} else {
return v.getValue();
}
}
Aggregations