Access to Nuget used packages from API

Hi,

I need to automate a few steps on our build process, one of the steps requires I get the list of Nuget used packages that Team City generates every build on the nugetPackagesBuildTab.

I would prefer to access this information throught the API, but I've been unable to find any away to acheive this. Is my only option HTML scrapping?

Thanks,

Pedro

1 comment
Comment actions Permalink

Hi Pedro,

No, we do provide special REST API request to get this list. While this list is saved as hidden artifact in .teamcity/nuget/nuget.xml folder. So you can use REST API to download this file:

http://teamcity:8111/app/rest/builds/id:1709/artifacts/content/.teamcity/nuget/nuget.xml
0

Please sign in to leave a comment.