title: Archiving artifacts not in the workspace when build fails
body: <p>When an ANT build step fails in my build I'd like to archive the logs in order to determine the problem. The relevant logs, however, are not located in the workspace, so I have to use a full path to them.</p>
  
  <p>The standard artifact archiving feature does not work well with full paths, so first I have to copy the logs into the workspace within some build step so that I can later archive them. I do not want to incorporate the copying code into the original ANT script (it does not really belong there). On the other hand, since the build step fails the build I can't execute the code that copies the artifacts into the workspace as a separate build step as it is never reached.</p>
  
  <p>I am considering using ANT <code>-keep-going</code> option, but how will I then fail the build?</p>
  
  <p>Any other ideas (artifact plugins that handle full paths gracefully, for example)?</p>
  
  <p><strong>Update</strong>: I've worked around the problem by creating a symbolic link in the workspace to the directory that contains the files to be archived. Kludgy, but effective.</p>