I used ubundu as the jenkins server master machine and configured the windows machine as a slave. I tried to hide and unzip the file from the wizard to the working work plan, but it is not unwound.
node('slave') { node('master'){ stash includes: "file.tgz" name: "master-stash" } unstash "master-stash" bat "ls" }
Output:
[Pipeline] node Running on master in /var/lib/jenkins/workspace/testing [Pipeline] { [Pipeline] stash Stashed 1 file(s) [Pipeline] } [Pipeline]
The file can be hidden from the master, but it is not smudged in the workspace of the slave.
jenkins: 2.35
source share