REST API: can I query for last build with a particular artifact? Permanently deleted user Created December 02, 2015 00:08 i would like to find the latest build on a particular branch that has an artifact called coverage.xmlIs this possible?
Hi Marc,
No, it's not possible. You can create a build script, that:
GET http://teamcity:8111/httpAuth/app/rest/builds/
/artifacts/content/Stops and returns the build locator if coverage.xml is found.
Why do you need to find such builds using REST API?
Hi again,
The second approch is available. Since TeamCity 9.1.x you can use the following request:
This request returns the list of all builds, but builds that contain requested artifact have the following pattern: