I have a project with a single build-type (that is vcs triggered) and I want to be able to query for the latest successful build of that project.
However, when I ask the REST API for the builds of that build-type I only get back an old one, not the latest. The only difference I can see between them is that the web link for the old one says "branch_my_project=<default>" and the vcs-triggered one says "branch_my_project=master".
I can accept there could be some misconfiguration in my vcs setup if it thinks that master is not the default branch, but that is independent of my question.
/httpAuth/app/rest/builds/ does not contain the build (of course, since this is my question)
/httpAuth/app/rest/buildTypes/id:my_type then follow the "builds.href" to /httpAuth/app/rest/buildTypes/id:my_type/builds/ does not contain the build
/httpAuth/app/rest/changes?project=my_project does show the change and the webLink says it is "personal=false" (which is what I would expect, since it was a vcsTriggered build)
/httpAuth/feed.html?buildTypeId=my_type&itemsType=builds does contain the build
I would expect that /app/rest/builds would show all builds, which it clearly does not. I would also expect /app/rest/buildTypes/id:my_type/builds to show the build.
This might be related to TW-5031 but I got the impression that it is asking for a report page, not for the REST functionality to function correctly.
Any insight will be appreciated!