Search in sources :

Example 1 with FileParameterValue

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();
    }
}
Also used : FilePath(hudson.FilePath) FileParameterValue(hudson.model.FileParameterValue)

Aggregations

FilePath (hudson.FilePath)1 FileParameterValue (hudson.model.FileParameterValue)1