I did a get request to get the build result. In the response json, there is 'id'. What's that value for?
GET request: https://bamboo.air.com/rest/api/latest/result/ACP-CIT7506.json?expand=results
I have marked the id in Bold.
Response:
"master": {
"shortName": "Integration Tests",
"shortKey": "CIT",
"type": "chain",
"enabled": true,
"link": {
"href": "https://bamboo.air.com/rest/api/latest/plan/ACP-CIT",
"rel": "self"
},
"key": "ACP-CIT",
"name": "Integration Tests",
"planKey": {
"key": "ACP-CIT"
}
},
"buildResultKey": "ACP-CIT7506-1",
"lifeCycleState": "Finished",
"id": 493805106,
"key": "ACP-CIT7506-1",
"planResultKey": {
"key": "ACP-CIT7506-1",
"entityKey": {
"key": "ACP-CIT7506"
},
"resultNumber": 1
},
"state": "Failed",
"buildState": "Failed",
"number": 1,
"buildNumber": 1
}
It's the buildresultsummary_id (PK) of the build result row from the table BUILDRESULTSUMMARY in the Bamboo database.
It's really only useful for those who want to explore the underlying data since other REST API operations take the build result key as opposed to ID.
E.g.
SELECT * FROM BUILDRESULTSUMMARY WHERE BUILDRESULTSUMMARY_ID = '493805106';
Hope this helps. :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.