title: Jenkins Workflow Build Information
body: <p>How do you access current, and related, build information from within a Jenkins workflow groovy script?</p>
  
  <p>I can see things like currentBuild.result and currentBuild.previousBuild being documented, but I can't see how I can access, for example:</p>
  
  <ul>
  <li>The URL of the current build job.</li>
  <li>The URL of build jobs that this workflow triggered.</li>
  <li>The console output of a particular failed build job, etc.</li>
  </ul>
  
  <p>Thanks for any pointers.</p>