Copy file from Jenkins master to slave in Pipeline Copy file from Jenkins master to slave in Pipeline jenkins jenkins

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.