Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting up CI with TeamCity with Git & NAnt

We're moving away from TFS as a source control/build service.

We're now using TeamCity, and hosting our source on Git via BitBucket.

Can anyone point me to a decent article, blog, existing Stack question with a basic outline of the steps here to get a CI configuration up and running?

I've got a basic project setup in TeamCity, got it pulling the source from Git, but i'm trying to figure out how to setup NAnt as a build step to compile the code and publish it to my IIS website.

Any advice?

Just to be clear, the setup:

  1. Build server = TeamCity
  2. Source Control = Git (BitBucket)
  3. Application = ASP.NET MVC 3 Web Application
  4. Web Server = IIS 7

Appreciate any pointers.

The closest thing i've found it this: http://thecodedecanter.wordpress.com/2010/03/25/one-click-website-deployment-using-teamcity-nant-git-and-powershell/

But that involves the web server pulling the code from Git using powershell. I don't want that. I want TeamCity to pull the Git code and publish directly to my web server.

like image 529
RPM1984 Avatar asked Mar 18 '12 23:03

RPM1984


People also ask

How do I create a build configuration in TeamCity?

Go to Administration | Projects and open the required project. Alternatively, open the project using the Projects pop-up menu and click Edit Project Settings. The Project Settings page will open. On the Project Settings page, click Create build configuration under the Build Configurations section.


1 Answers

Got it working (with MSBuild - not NAnt, for now) thanks to this excellent blog series.

like image 95
RPM1984 Avatar answered Oct 16 '22 15:10

RPM1984