Problem:
I’m trying to use Jenkins’ Publish Over SSH plugin to copy all files AND sub-directories of some given directory, but so far, I’ve only able to copy files and NOT directory.
I have a directory named
foo
in my workspace, and during the build, I want to copy everything in this directory to a remote server. I’ve tried this pattern foo/**
, but it doesn’t copy all sub-directories.
Solution:
For recursive copy of directory you should give
foo/**/*
Hello,
ReplyDeleteInstead of foo folder and its content recursively , what we need to do if we just want to copy the whole contents of foo recursively without foo folder ?
Thanks
Kagan