title: Jenkins copy directories/files in a build
body: <p>I am trying to copy files out to a network directory during a build, and I keep getting a " No such file or directory" error message.</p>
  
  <p>Copying to local drive works fine:</p>
  
  <pre><code>cp -Rf c:/Jenkins/deployments/TW_ISSUE_A/src c:/Jenkins/deployments/TW_ISSUE_A/target
  </code></pre>
  
  <p>The following all throw the same message:</p>
  
  <pre><code>cp -Rf c:/Jenkins/deployments/TW_ISSUE_A/src H:/some_dir
  
  cp -Rf c:/Jenkins/deployments/TW_ISSUE_A/src H:\some_dir
  
  cp -Rf c:/Jenkins/deployments/TW_ISSUE_A/src //Hubbell/MISGenl/some_dir
  
  cd c:/Jenkins/deployments/TW_ISSUE_A/src
  rsync -avuzb //Hubbell/MISGenl/Projects/Tronweb/TronwebBuilds/test/ora/sql/
  
  cp -Rf c:/Jenkins/deployments/TW_ISSUE_A/src /cygdrive/h/some_dir
  </code></pre>
  
  <p>I've even created a shell script to call from Jenkins, but I continue to receive that message.</p>
  
  <pre><code>#!/bin/bash
  
  url="http://as-test02:8080/job/TW_ISSUE_A_BUILD/lastSuccessfulBuild/artifact/bui
  ld-TW_ISSUE_A_BUILD.tar";
  
  remote_stage_dir="/cygdrive/h/some_dir"
  
  #fetch the artifacts
  
  (cd "$remote_stage_dir" &amp;&amp; wget "$url" &amp;&amp; tar xvf build-TW_ISSUE_A_BUILD.tar dat
   java ora &amp;&amp; rm -rf *.tar &amp;&amp; cp -r ./ora/* ../INTEGRATION)
  </code></pre>
  
  <p>Is there any way to copy files out to a mapped drive on the build machine?</p>
  
  <p>Thank you!!</p>