title: Refer To A Jenkins Parent Workspace From Child
body: <p>I have a child configuration in Jenkins that can be triggered from 3 separate parent configs.</p>
  
  <p>The purpose of this is to run Sonar on my code. I could add a post build step to each of the parents, but if anything changes I have to change it in 3 places and something is likely to get missed.</p>
  
  <p>Therefore, I can see a few options:</p>
  
  <ul>
  <li>the child has to run on the same slave as the parent and needs access to the parent workspace via a variable.</li>
  <li>the svn url is transferred to the child and the code is checked out</li>
  <li>the parent workspace is zipped up and transferred to the child (slave independent)</li>
  </ul>
  
  <p>The first option seems to be the lowest on netweork impact (especially as the workspace is very big).</p>
  
  <p>Which of these is possible in Jenkins and how do I do it?</p>