title: How to get jenkins to copy artifacts to a dynamic directory?
body: <p>I'm trying to get Jenkins to copy the artifacts of a build to an archive directory on another server using the scp plugin.  </p>
  
  <p>Ideally, I'd like to be able to have the destination be dynamic based on the build version so the result would like something like <code>/builds/&lt;build version&gt;/</code></p>
  
  <p>For a build version like 1.2.3.4 it would look like:</p>
  
  <pre><code>/builds/1.2.3.4/
  </code></pre>
  
  <p>From reading the scp plugin page, it doesn't look like this is possible but I figured someone here may have figured it out.</p>
  
  <p>Is there a way to do this?</p>
  
  <p>Is it better to just put the artifacts with the version number embedded in the file name in one directory?</p>