title: Jenkins pipeline groovy:how can I get the workspace of another job build
body: <p>I have a job A using groovy code which manages multiple jobs like this:</p>
  
  <pre><code>def ret_b = build job:'Job B',parameters: [string(name: 'PROJECT', value: env.project_name)]
  </code></pre>
  
  <p>I need to use the workspace of job B in job A. Since each build of job B would create different workspaces such as workspace@2, I couldn`t hard code it in the pipeline groovy.Is it possible for me to get the workspace of job B?</p>