Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make a build show up in my TeamCity public NuGet feed?

We use TeamCity 7.1.1 to publish NuGet packages on both the authenticated and public feed URLs. I've just created a new package and can't get it to show up on the public feed, though it does appear on the private feed once I log in.

It smacks of a permissions problem, but I've assigned 'All Users' the 'Project Viewer' role on that build. I have another build that is showing up correctly, and the configuration seems the same. What could be stopping my new build from appearing on the public feed?

like image 570
Tim Long Avatar asked Oct 04 '12 05:10

Tim Long


People also ask

How do I publish a NuGet package to TeamCity?

When using TeamCity as a NuGet server, there are three ways to publish packages to the feed: as build artifacts of the NuGet Pack build step using the Publish created packages to build artifacts checkbox - in this case you do not need the NuGet Publish build step. via the NuGet Publish build step.

How use NuGet feed URL?

Set up Visual Studio Select NuGet Package Manager, and then select Package Sources. Enter the feed's Name and Source URL, and then select the green (+) sign to add a new package source. If you enabled upstream sources in your feed, clear the nuget.org checkbox. Select OK when you are done.

What is a NuGet feed?

Cloudsmith provides public & private feeds for NuGet. NuGet is an open-source package manager designed for the Microsoft development technologies. The NuGet repository support at Cloudsmith is compatible with Chocolatey, so if you're looking to manage packages on Windows, that's our recommended approach.


1 Answers

Solved it! I've been scratching my head for hours and of course I find the answer 30 seconds after posting to StackOverflow!

It seems that the Guest account is not a member of All Users, so assigning the Project Viewer role to All Users is not sufficient.

One has to explicitly assign the Project Viewers role to the Guest User. This is confusingly done in a completely separate screen, under Guest user settings, linked from the top right hand side of the main user administration screen. Walla! Job done.

like image 124
Tim Long Avatar answered Nov 02 '22 13:11

Tim Long