How do I retrieve the URL of a Jenkins downstream job without waiting for the job to finish? I can access the downstream job in the Jenkins web interface, but I cannot retrieve the URL immediately in the upstream pipeline.
my_job = null
my_job = build job: 'Downstream Job', wait: false, propagate: false
my_job_url = my_job.getAbsoluteUrl() // my_job is still null
Is this not possible?
Given what @roman said in the comment, JENKINS-31392 is the best workaround.