title: Jenkins and SCP
body: <p>I have set up a jenkins build and everything is working fine except the very last step.</p>
  
  <p>The whole build creates a directory called: <code>build</code></p>
  
  <p>This directory contains a <code>web-inf</code> and all the files in it I would like to publish via SCP to a different location, so that all the content of the <code>build/web-inf</code> folder will become the content of the target folder.</p>
  
  <p>The settings for jenkins scp plugin are (it is a post-build step):</p>
  
  <pre><code>source: build/web-inf/**
  destination: public_html/
  </code></pre>
  
  <p>that results in:</p>
  
  <pre><code>public_html/build/web-inf/...
  </code></pre>
  
  <p>but should be:</p>
  
  <pre><code>public_html/...
  </code></pre>
  
  <p>(the <code>keep hierarchy</code> box is ticked)</p>
  
  <p>how can I make that happen??</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I could solve the problem without any additional script. The solution is so simple that my question turned out to be stupid.</p>
  
  <p>All I did was telling ant to copy all the webfiles to <code>./public_html</code> instead of <code>./build/web-inf/</code> what made the jenkins scp copy all files from <code>public_html</code> to <code>public_html</code> exactly as it was intended to.</p>