Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins - Publish Over SSH Plugin: How to copy directory

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.

Any suggestion? Or this is not the plugin I should be using?

Thanks

like image 747
0x56794E Avatar asked Oct 17 '16 10:10

0x56794E


1 Answers

For recursive copy of directory you should give

foo/**/*

I verified this on my laptop using locally deploying Jenkins. It works fine.

like image 155
vikas patidar Avatar answered Oct 21 '22 17:10

vikas patidar