title: Jenkins transferring 0 files using publish over SSH plugin
body: <p>I want to transfer files from my post build Jenkins workspace to a location on a remote server. Build goes smoothly for all steps in the job but always transfers 0 files.</p>
  
  <p>This is the console output:</p>
  
  <pre><code>    Started by user Patrick
      Building in workspace /var/lib/jenkins/jobs/20eyes Build/workspace
      Fetching changes from the remote Git repository
      Fetching upstream changes from https://github.com/project/project.git
      using .gitcredentials to set credentials
      Checking out Revision a758e0f8e534271b999a2fc8696b6fd5a3d5e500 (origin/master)
      executing script:
  
      cd /var/www/20eyes-web
      [SSH] exit-status: 0
      SSH: Connecting from host [dev1.remotehost]
      SSH: Connecting with configuration [dev2.remotehost] ...
      SSH: Disconnecting configuration [dev2.remotehost] ...
      SSH: Transferred 0 file(s)
      Build step 'Send files or execute commands over SSH' changed build result to  SUCCESS
      Finished: SUCCESS
  </code></pre>
  
  <p>The job is configured to build after any commit is pushed to GitHub</p>
  
  <p>The transfer set is:
  Source Files: </p>
  
  <pre><code>/var/lib/jenkins/jobs/20eyes Build/workspace/**/*
  </code></pre>
  
  <p>Remove prefix: </p>
  
  <pre><code>/var/lib/jenkins/jobs/20eyes Build/workspace
  </code></pre>