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