Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Manually add a nupkg file to TeamCity Feed?

I have a TeamCity server with its Nuget feed enabled. I would like to manually add some third-party nupkg files to it. Is it possible to do so?

like image 342
Meirion Hughes Avatar asked Feb 04 '15 12:02

Meirion Hughes


1 Answers

You can add nupkg to a private feed either by using the out-of-the-box TeamCity "NuGet Publish" runner type step or by using the NuGet exe.

  1. Out of the Box NuGet Publish: configure a build step with runner type "NuGet Publish". Under NuGet settings, provide the location to your .nupkg file(s) relative to checkout directory. Also supply the API key and the package source (URL to your private NuGet feed). Then run this build step and it should publish your package. It might be better to have preceding steps that rename the package to avoid confusion.

  2. CommandLine NuGet.exe: configure a build step with runner type "Command Line". Select "Executable with Parameters" under Run option. input the path to the NuGet.exe under "command executable' and add the following parameters under "command parameters"- push {Path-to-package}{Package-Name}.nupkg {API-KEY} -Source {URL-to-Private-Feed}

like image 112
delloPiro Avatar answered Sep 28 '22 01:09

delloPiro