title: reading build artifacts in a Jenkins plugin
body: <p>I'm trying to write a Jenkins plugin that reads a JSON file generated by my build and displays a summary of its data on the respective build page. I've followed the example of other plugins and have custom classes that extend <code>Action</code>, <code>BuildStepDescriptor&lt;Publisher&gt;</code>, and <code>Recorder</code>, and can successfully display custom text on the build page, but how do I access the build artifact?</p>
  
  <p>In my custom <code>Action</code> class, the overriden <code>perform()</code> method receives a <code>final AbstractBuild&lt;?, ?&gt; build</code> argument, which has a handy <code>getRootDir()</code> method, but this seems to return the path of the directory containing all of the <em>archived</em> build files (i.e. those that were explicitly saved), and it's not the path of the actual build working directory.</p>