NuGet + TeamCity 7?

Hello,

I am trying to give Octopus Deploy a go, as it seems like a great tool, but its confusing to get started.

I added a nuspec file to my project, and TeamCity builds it, however it seems to package my entire source tree (instead of the www project I added the nuspec to).

The package is created fine in VS using OctoPack, but TeamCity does something strange and packages the entire source code instead.

How do I use OctoPack (?) with TeamCity 7? This part is very confusing.

Thanks,
Andrew

Hi phplasma,

Can you explain how the TeamCity build is configured, perhaps with some screenshots of the ‘steps’ in TeamCity? I use a combination of OctoPack and TeamCity 7 for deploying the Octopus website and it seems to work OK, it might just be a configuration issue.

Paul

Hi Paul,
It would help if you had a step by step guide to how you use the combination of octopack and teamcity7 to deploy the octopus website because we cannot figure out how to do it from reading the documentation. I say this as a potential client and we appreciate the awesome product you have built but it is frustrating when google does not yield any results.

Strangely, I am having the same problem that Andrew mentioned. I publish my web app to c:\publish directory using teamcity msbuild and in another build step, I ask teamcity to pack the contents in c:\publish using nuget. The end result is that my entire source in tfs gets packaged!! What am I doing wrong?
I have a nuspec file in the c:\publish folder and the content of packages.config file has package a line item for id=“OctoPack” version=“1.0.82”

Am I supposed to octopack instead of nuget for packing??

Hi Darth,

Point taken about the need for some step-by-step guides - I’ll make sure there are some for the common combinations soon.

Does the source code end up in C:\Publish? Can you attach some screenshots (feel free to email them - paul@paulstovell.com) of how TeamCity is configured?

Paul

Found out that it was a configuration error.
Even though, teamcity was pointing to the correct nuspec file, the ‘base directory’ field was left empty in teamcity for the nuget build step. I set base directory to c:\publish and life is good.

Hi Darth Jit,

Tonight I wrote up a blog post on how to use OctoPack and TeamCity - hopefully this helps going forward:

Paul

Thank you very much. This helps a lot. When can we expect v1.0? It would be
hard for us to convince our company go live with a beta product.

Hi Ranjit, that’s great. I’m expecting to release v1.0 sometime between the end of April and mid-May.

Paul