Getting nuget packages in a buildartifact using OctoPack
I am not really sure whether I should be asking TeamCity or Octopus Deploy this question, so here it goes:
I am trying to figure out why my project's nuget packages are not inside the Teamcity build artifact. The teamcity project builds successfully, because prior to building we run a Nuget Installer (Runner type: Nuget Installer) which restores the required nuget packages. In the build step we have enabled Octopack in order to build an artifact. This works great so far, with the exception that all nuget packages are missing in the artifact.
Any ideas?
Please sign in to leave a comment.
Hi Jorn,
If you are creating the package with octopus, then I'd say you should probably get in touch with them, as it's very likely their plugin that is creating (or not) the artifact. Unless it takes it from the published artifacts of your build, then you might need to add them to the TeamCity build configuration, artifact paths
On the other hand, are you expecting the nuget packages restored from the nuget installer step within the generated artifact? If that's the case, then it might be them explicitly excluding those because they are expected to be added as dependencies and not included in the same package? I'm asking as I'm not sure how the dependency system works there.
Thanks for the reply. I resorted to using Nuget pack instead and deploying the artifact in a separate step to octopus.