0

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 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

2 Comments

Sorry, my first answer and wasn't very clear. I've updated to better explain. The link provided wasn't meant to be a web link, but a link to the OP's (or anyone's) local teamcity instance to get the information they were looking for. Thanks.
Is there a required step before using this URL? I have sucessfully obtained the buildid but when i launch the url i get a 404

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.