We are using the built in nuget feed in Octopus Deploy and have successfully published (pushed) packages to it. It also works great when using the “Deploy nuget package” step.
However, when I try to install a package that have been published to the feed I get an error.
nuget install <OurNugetPackageId> -Source http://localhost:8082/nuget/packages
An error occurred while loading packages from'http://localhost:8082/nuget/packages': The remote server returned an error : (405) Method Not Allowed.
Is it not possible to install packages from the Octopus feed outside the context of Octopus Deploy?
We are using Octopus Deploy version 2.5.10.567.
Hi Kristoffer
Thanks for getting in touch.
The internal Nuget repository is only for internal storage for deployments, we don’t expose it as a new get feed for other applications.
Your best option is to expose your component nuget packages via your build server (TeamCity has particularly nice support) or a third party service such as MyGet.
Regards
Damian
OK, so that explains the 405 status code.
What we are trying to accomplish is to create a step template that requires a nuget package to be installed before additional code is executed. But I guess we’ll have to deploy it using a separate “Deploy nuget package”-step?
Hi Kristoffer
Sorry I missed your reply in my inbox, yes doing a separate deploy step is the way to go here.
Regards
Damian