I have a Jenkins job A which triggers job B in its Post-Build Actions section.
Need Jenkins REST API with which I can get build result details for job A which should include details for job B as well.
I have tried this:
http://myjenkins/view/all/job/A/1/api/json?pretty=true&tree=actions[triggeredBuilds[number,url,result]]
However, this does not include details of job B. Basically this triggeredBuilds action doesn't include details of build triggered in Post-Build Actions.