Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How can I retrieve only build result status using REST API?

Hi,
I'm looking for how to retrieve build results using REST API. I'm currently using this url to find build results:

curl -k -L -b cookies.txt http://myurl:8603/ccm/resource/virtual/build/resultrecords?definitionUUID=_UX6MALoLEeG3bMomDoucaA

It works quite well but returns a lot of information I don't need (for example all the build definition and build engine properties). This is quite annoying because I've to do a lot of parsing in order to catch what I really need, which are buildStatus, buildState and the build request itemId that I need to use to identify the correct result.

Is there a way to filtering the json for build results as it is possible with work-items using oslc_cm.properties?

Thanks,
Michele.

2 votes



One answer

Permanent link
 Try adding query arg profile=REDUCED

(the _prettyPrint=true is just for debugging)

Fetching just the results, not the result records, would be faster too:
but this does not include the build request info, just the build result item id.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,019
× 479

Question asked: Jun 22 '12, 5:52 a.m.

Question was seen: 7,288 times

Last updated: Aug 31 '12, 3:11 p.m.

Confirmation Cancel Confirm