getting build id while using parallel build

13 views
Skip to first unread message

David Sariel

unread,
Apr 4, 2018, 11:34:14 AM4/4/18
to Jenkins Users
hello!

when running

                      builds = [:]
                      builds[jobs[index]] = {
                         job_info = build job: jobs[index], propagate: true, wait: false, parameters: updated_params
                         println "job_info " + job_info
                      }
                      parallel builds

I'm getting null job_info. Which is ok, since the job was not started yet. Bit Is there a way to get a build number afterwards (upon the start of the build)?
Running sequentially (with 'wait: true'), job info is obtained as expected, but I can't use 'wait: true' because the requirement is to run jobs in parallel.

Thanks
Reply all
Reply to author
Forward
0 new messages