Right now to get a list of the last build for each build type I have to:
- Get all the build types through this endpoint:
/guestAuth/app/rest/buildTypes/ - Get the last build metadata for each
buildType:/guestAuth/app/rest/buildTypes/id:BUILD_TYPE_ID/builds/?locator=lookupLimit:1
This is very inefficient as I have to make as many requests as there are buildTypes.
The REST API does not allow to specify more than one BUILD_TYPE_ID per request to the endpoint.
Is there a way to aggregate this requests? Is it possible to get the last build metadata for each buildType in one go?
I am using TeamCity 8.1.
wget.exe http://teamcity.domain.com/httpAuth/repository/downloadAll/btx/.lastFinished/ --user=<user> --password=<password> --output-document=artifacts.7z- wal