title: Copying files from one directory to another in jenkins
body: <p>I'm trying to move my test results onto a public webpage.</p>
  
  <p>I set up a "Post-build action" > "Post build task" to execute a script.</p>
  
  <p>The script is:</p>
  
  <p><code>cp -r /var/lib/jenkins/jobs/instrumentation-tests/htmlreports/HTML_Report/ /var/www/html/test/</code></p>
  
  <p>Jenkins outputs: cp: directory /var/www/html/test does not exist</p>
  
  <p>If I'm logged in as user jenkins on the linux machine running jenkins, I can navigate to the source and SEE that there are files there currently. I can navigate to the destination and see that it DOES exist.</p>
  
  <p>Also, I tried running that command from the terminal as the jenkins user, and the cp completed successfully.</p>