Using a authenticated NuGet Service via TeamCity

Answered

I have a "NuGet Installer" Step with the package source "%teamcity.nuget.feed.auth.server%". But where do I submit the authentication credentials? I have an entry in Build Features as "NuGet Feed Credentials" but it seems to be ignored because in the Build Log I got the error that I need to insert my credentials. I'am using 9.1.7 of TeamCity. This is a part of the documentation: "Since TeamCity 9.1.4, when using TeamCity as the internal Nuget server, the credentials specified via this build feature are ignored; the internal TeamCity authentication is used." what does this actual mean? 

3 comments
Comment actions Permalink

Hi Sebastian,

What NuGet version do you use? There are several issues: one with NuGet version 3.3.0 and higher: https://youtrack.jetbrains.com/issue/TW-44438 and the second with local agent: https://youtrack.jetbrains.com/issue/TW-44479. Please check the tickets linked.

0
Comment actions Permalink

I think the TW-44438 issue is exactly my problem. Actual I build a little workaround and store the credentials in the nuget configuration file, see: https://gist.github.com/xavierdecoster/3205826

0
Comment actions Permalink

Thank you for the updated and posting workaround.

Please vote for and watch the issue to get status updates. Hope it will be fixed soon.

Sorry for the inconvenience. 

0

Please sign in to leave a comment.