Copy file from Jenkins master to slave in Pipeline
As I understand copyFrom
is executed on your Windows node, therefore the source path is not accessible.
I think you want to look into the stash
/unstash
steps (Jenkins Pipeline: Basic Steps), which work across different nodes. Also this example might be helpful.
Pipeline DSL context runs on master
node even that your write node('someAgentName')
in your pipeline.
- Try to use stash/unstash, but it is bad for large files.
- Try External Workspace Manager Plugin. It has pipelines steps and good for large files.
- Try to use an intermediate storage.
archive()
andsh("wget $url")
will be helpful.