I’ve been a ardent supporter of continuous delivery since I first learnt about it from a presentation by Martin Fowler and Jez Humble. At the time I loved how it encouraged less risky deployments and changed the decision of when/what to deploy from being a technical decision to being a business decision.
I personally think that embracing continuous delivery is an important intermediate step on the journey towards moving from technical agility to strategic agility.
This post was first written in August 2012, but has since been largely rewritten in February 2014 to keep it up to date.
This post forms the introduction to a blog series that is jointly written by myself and Matt Davies.
- Intro
- TeamCity deployment pipeline
- Deploying Web Applications
- MsDeploy (onprem and Azure Web Sites)
- OctopusDeploy (nuget)
- Git push (Windows Azure Web Sites)
- Deploying Windows Services
- MsDeploy
- OctopusDeploy
- Git push (Windows Azure Web Sites Web Jobs)
- Deploying Windows Azure Cloud Services
- OctopusDeploy
- PowerShell
- How to choose your deployment technology
Continuous Delivery with TeamCity
One of the key concepts in continuous delivery is the creation of a clear deployment pipeline that provides a clear set of sequential steps or stages to move software from a developer’s commits to being deployed in production.
We have been using TeamCity to develop deployment pipelines that facilitate continuous delivery for the last few years. While TeamCity is principally a continuous integration tool, it is more than adequate for creating a deployment pipeline and comes with the advantage that you are then using a single tool for build and deployment.
We have also tried combining TeamCity with other tools that are more dedicated to deployments, such as OctopusDeploy. Those tools provide better deployment focussed features such as visualisation of the versions of your application deployed to each environment. This approach does create the disadvantage of needing to rely on configuring and using two separate tools rather than just one, but can still be useful depending on your situation.
There are a number of articles that you will quickly come across in this space that give some really great advice on how to set up a continuous delivery pipeline with TeamCity and complement our blog series:
- Continuous Integration & Delivery For GitHub With TeamCity
- Continuous Delivery to Windows Azure Not Only Microsoft Style with TeamCity
- Continuous Delivery with TeamCity
- You’re deploying it wrong! TeamCity, Subversion & Web Deploy part 1: Config transforms
- Continuous Delivery with psake and TeamCity
- TeamCity Build Dependencies
- Continuous Delivery to Windows Azure Web Sites (or IIS)
Purpose of this blog series
The purpose of this series is three-fold:
- Document any findings that myself and Matt Davies have found from implementing continuous delivery pipelines using TeamCity that differ from the articles above;
- Outline the techniques we have developed to specifically set up the TeamCity installation in a way that is maintainable for a large number of projects;
- Cover the deployment of Windows Services and Azure Roles as well as IIS websites.
Our intention is to build of the work of our predecessors rather than provide a stand-alone series on how to set up continuous delivery pipelines with TeamCity.
Other options
TeamCity is by no means the only choice when it comes to creating a deployment pipeline. Feel free to explore some of the other options: