I'm trying to get the latest successful build.
This request returns all of the successful builds for a specified buildType
(as BUILDTYPE
below).
/httpAuth/app/rest/builds/?locator=buildType:BUILDTYPE,status:SUCCESS
Is there a way to further filter out to get the single latest successful build of the corresponding buildType
?
TeamCity Version: Professional 9.1.3 (build 37176)
Adding a count of 1 should work:
/httpAuth/app/rest/builds/?locator=buildType:BUILDTYPE,status:success,count:1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With