Skip to content
Benjamin Wootton.Better Software
Software

CI Tools

2 May 2012

By Benjamin Wootton

2 min read

The benefits of continuous builds are so obvious, widely documented and experienced nowadays that anyone with even a passing interest in agile process improvement will make a continuous integration server one of the first things they set up in their team.

A good continuous integration server gives a team a shared source of truth. It answers a simple question on every change: does the software still build and do the tests still pass? That sounds modest, but the habit of integrating small changes frequently is one of the highest leverage practices in software delivery.

What the server should do

At a minimum, a CI server should watch your source control repository, build the project on every change, run the automated test suite and publish a clear result. The result needs to be visible and trusted. A build that is allowed to stay red teaches the team to ignore it, and once that happens the server is no longer doing its job.

Beyond the basics, look for a tool that can run builds in parallel, keep a history of results, show the change that broke a build and support the environments your team actually uses. Speed matters. A build that takes an hour will not be run often enough to shape behaviour.

The options

When I was working in Java teams, the common choices were Jenkins, TeamCity, Bamboo and CruiseControl. Each had strengths: Jenkins for its plugin ecosystem and flexibility, TeamCity for a polished interface, Bamboo for teams already inside the Atlassian stack, and CruiseControl for a simple, long standing approach.

Outside the Java world, hosted services such as CircleCI and Travis CI made it possible to get a build running without owning any infrastructure. That trend has only accelerated since. For a small team, a hosted service can be a sensible first step because it removes the maintenance work that so often distracts from the product.

Source control and CI belong together. I wrote about the wider cloud pipeline in continuous delivery using cloud development tools, and the tooling discussion there starts with GitHub and a build server.

Make it part of the definition of done

The tool is the easy part. The hard part is the habit. A change should not be considered finished until it is integrated, built and tested by the shared server. That single rule prevents the long lived branch problem and gives the team a reliable signal about the state of the product.

If you are new to this, start with the smallest useful pipeline: one repository, one build, one test command and a visible result. Then improve it deliberately. Tips on continuous delivery picks up where the first build server leaves off, and why developer testing matters explains why the tests in that pipeline deserve real care.

Reference shelf

Sources and further reading for this note.