R – Publish an web application on build with NAnt, MSBuild or any other tool

build-automationcontinuous integrationmsbuildnantweb-deployment-project

I have a scenario where I have to setup a test environment where I want to be able to tell my NAnt or other build tool to make an new IIS web application, put the latest bins in the newly created IIS web application, and post me an email where the new address and port where the new application are addressed, is this possible and how? which tool?

Best Answer

There are several ways to approach this:

  1. Set up a continuous integration (CI) server on the test environment. This is a viable option if your test environment machine doesn't change often and it's a single machine.
  2. Push the installation from your development machine using tools like PsExec
  3. Combination of the two: you have a build CI server which pushes the installation to (multiple) test environments.

Of course, you also need a good build script which will set up the IIS application (NAnt offers tasks for this). Emailing to you can be done by CI server (CruiseControl.NET Email Publisher, Hudson...).

I suggest taking some time to read this excellent article series: Automation for the people: Deployment-automation patterns

Related Topic