title: transferring 0 files using publish over SSH plugin in Jenkins
body: <p>I already read <a href="https://stackoverflow.com/questions/22158092/jenkins-transferring-0-files-using-publish-over-ssh-plugin">this</a> and <a href="https://stackoverflow.com/questions/26788842/jenkins-ssh-plugin-0-files-transferred">this</a> and <a href="https://stackoverflow.com/questions/23198641/jenkins-0-files-published-after-build">this</a> answers but non of them helped me.
  I am using Windows machine for Jenkins</p>
  
  <p>My workspace has only the following files</p>
  
  <p>C:\Jenkins\workspace\Copy_file\DevOps\resource\file1.txt
  C:\Jenkins\workspace\Copy_file\DevOps\resource\file2.txt</p>
  
  <p>I would like to publish over ssh only file1.txt</p>
  
  <p>I added the plugin to Publish Over SSH:</p>
  
  <pre><code>Source files  DevOps\resource\file1.txt
  Remove prefix DevOps\resource
  Remote directory /tmp/
  </code></pre>
  
  <p>However I see in the result:</p>
  
  <pre><code>C:\Jenkins\workspace\Copy_file\DevOps\resource\file1.txt
  SSH: Connecting from host [hhhhh]
  SSH: Connecting with configuration [Redhat1] ...
  SSH: Creating session: username [hhhh], hostname [iiiiii], port [22]
  SSH: Connecting session ...
  SSH: Connected
  SSH: Opening SFTP channel ...
  SSH: SFTP channel open
  SSH: Connecting SFTP channel ...
  SSH: Connected
  SSH: Remote root is not absolute, getting absolute directory from PWD
  SSH: Disconnecting configuration [Redhat1] ...
  SSH: Transferred 0 file(s)
  Build step 'Send files or execute commands over SSH' changed build result to SUCCESS
  Finished: SUCCESS
  </code></pre>
  
  <blockquote>
    <ol>
    <li>Why is it sending 0 files?</li>
    <li>How can I make the path absolute so it will put it in /tmp/ and not in /home/user/tmp?</li>
    </ol>
  </blockquote>
  
  <p><strong>UPDATED</strong></p>
  
  <p><img src="https://i.stack.imgur.com/dUo4C.png" alt="enter image description here"></p>