You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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.