The build job step returns a RunWrapper object, and in your case you can 
use the getId method 
<http://javadoc.jenkins.io/plugin/workflow-support/org/jenkinsci/plugins/workflow/support/steps/build/RunWrapper.html#getId-->

def buildObj = build job: 'my-test-job', parameters: [string(name: 
'environment', value: 'QA')], quietPeriod: 10
echo buildObj.getId()

Cheers

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5d95bfeb-e461-4d33-b04f-93b4e7bc13bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to