Karl Gjertsen
Karl Gjertsen

Reputation: 4928

Hiding Some nuget packages in TeamCity

I have a TeamCity server that also acts as the NuGet server. The server has a number of packages that I want to expose to authenticated users, using the Authenticated Feed URL, but it also has some packages that I do not want to be available.

Because we use Octopus Deploy, our projects are packed using octopack, so they also appear NuGet server.

Can I set TeamCity to restrict which NuGet packages authenticated users can see?

Upvotes: 0

Views: 99

Answers (1)

SteveChapman
SteveChapman

Reputation: 3081

You can prevent OctoPack from publishing the output nupkg packages by setting the OctoPackPublishPackagesToTeamCity system parameter to false (it defaults to true):

system.OctoPackPublishPackagesToTeamCity = false

This should solve your problem. As far as I know, the only way to restrict what appears on the TeamCity authenticated nuget feed is to simply not publish a package as an artifact.

Upvotes: 1

Related Questions