TeamCity NuGet private feed - Credentials

Posted by Gaui on Super User See other posts from Super User or by Gaui
Published on 2014-03-21T13:37:01Z Indexed on 2014/05/30 9:31 UTC
Read the original article Hit count: 407

Filed under:

I installed TeamCity and enabled NuGet server, both Authenticated Feed and Public Feed.

When I try to push packages to the server with the following command:

> nuget push package.nupkg [API-Key-here] -s http://myserver/httpAuth/app/nuget/v1/FeedService.svc/

I get the following prompt:

Please provide credentials for: http://myserver/httpAuth/app/nuget/v1/FeedService.svc/

And asks me for both "UserName" and "Password". I've tried entering credentials for TeamCity administrator and Windows administrator, but nothing works.

So I tried pushing to the Public Feed with the following command:

> nuget push package.nupkg [API-Key-here] -s http://myserver/guestAuth/app/nuget/v1/FeedService.svc/

Then I get the following:

Failed to process request. 'Method Not Allowed'.
The remote server returned an error: (405) Method Not Allowed..

Regarding the Authenticated Feed, what credentials are they and where do I specify them and why is the Public Feed not working?

© Super User or respective owner

Related posts about teamcity