Using Teamcity REST API, how to get list of nuget packages using teamcity rest API?

987 views Asked by At

Using this page Teamcity REST API I could manage to get status of builds in teamcity. I also found this library TeamCitySharp to get information about Teamcity builds. Is there any API that I can use to get list of all Nugget Packages used for each build? I would appreciate code sample.

enter image description here

1

There are 1 answers

2
Adam Cork On

I know it's been a long while since this question was asked, but I've just been searching for the answer and passed this question before I found this:

http://[your_teamcity_instance]/app/rest/builds/id:[buildid]/artifacts/content/.teamcity/nuget/nuget.xml

From the Teamcity REST API, you can retrieve the build id, which when used in the above template will provide you with an XML file, listing the NuGet packages used in a the build.