title: Jenkins - Publish Over SSH Plugin: How to copy directory
body: <p>I'm trying to use <a href="https://wiki.jenkins-ci.org/display/JENKINS/Publish+Over+SSH+Plugin#PublishOverSSHPlugin-Configure" rel="noreferrer">Jenkins' Publish Over SSH</a> 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.</p>
  
  <p>I have a directory named <code>foo</code> in my workspace, and during the build, I want to copy everything in this directory to a remote server.
  I've tried this pattern <code>foo/**</code>, but it doesn't copy all sub-directories.</p>
  
  <p>Any suggestion? Or this is not the plugin I should be using?</p>
  
  <p>Thanks</p>