How to I get the url of build triggered with build step on Jenkins?

Viewed 21348

While using Groovy based pipelines in Jenkins you can trigger child jobs using the the build stage.

Still the documentation above states nothing regarding what kind of return object you would get and what attributes it has.

The only thing I found so far is that I can use build.getResult() to obtain the result of the triggered job.

Still, I do want to obtain the URL of this job.

3 Answers
Related