Diagrams guide

Release pipelines: how a change reaches the live site

A release pipeline diagram shows each step a change takes from a developer to the live site. Draw it to see what checks each change.

Diagrams · · 4 minute read

The short answer

  • Draw every step a change passes through, in order, including the ones people do by hand.
  • Mark each check, and write what happens when it fails.
  • Agree how to put the last version back before you need to.

A finished example

This is what the Release pipeline diagram template can look like once it is filled in. This one is for a small team releasing its booking app.

An example made up for this guide. Your own board starts with the headings and prompts, and you add the notes.
Read the example as words
On the board
Person: Developer
Folder: Code
Gear: Build and 240 tests
Shield: Security checks
Server: Test site
Server: Booking app
Rules
A failed test stops the release
Nobody releases their own change unchecked
The last version can be put back in a minute
How the boxes are joined
Developer, saves a change, leads to Code
Code, starts, leads to Build and 240 tests
Build and 240 tests, passes, leads to Security checks
Security checks, goes to, leads to Test site
Test site, approved by a teammate, leads to Booking app

What a release pipeline is

Software changes all the time. A developer fixes a fault or adds a feature, and that change has to travel from their computer to the site that customers use. The route it takes is called a release pipeline.

A typical route has a handful of steps. The developer saves the change to the shared code. A machine builds the software and runs the tests. Checks look for security problems. The change goes to a test site, where someone tries it. Then it goes to the live site.

In many teams, nobody has drawn this route. Parts of it live in settings files, and parts in people's habits. A new starter learns it by asking around. When a bad change reaches customers, nobody is sure which step should have caught it.

A release pipeline diagram puts the whole route on one page. Anyone can see what happens to a change, what checks it, and who has to say yes.

It is useful to more than developers. People in support, sales and management often ask how long a fix takes to reach customers. The diagram answers them.

The steps to draw

Start with the person who makes a change, and end with the live site. Then fill in what happens between, in order.

  • Code. Where the shared code is kept, and what has to happen before a change is accepted.
  • Build and test. The automatic step that puts the software together and runs its tests.
  • Checks. Anything that looks for problems, such as security checks or a review by a teammate.
  • Test site. A copy of the site where a change can be tried safely.
  • Live site. What customers use.

Use a different shape for each kind of step, and the same shape for the same kind. A server shape for each site and a shield for checks make the diagram easy to scan.

Label each arrow with what moves the change on. "Saves a change", "passes" and "approved" each say something different. An arrow marked "approved" tells you a person is involved. Write who.

Include the steps people do by hand. If someone always sends a message before a release, that is a step. Hand steps are the ones that get skipped on a busy day, so they matter most.

Finding the weak points

With the steps drawn, look at each one and ask three questions.

What happens if this step fails? A failed test should stop the change. Check that it really does. In some pipelines a failure only sends a warning that people learn to ignore. Write the true answer on the board.

Can this step be skipped? Most pipelines have a side door for emergencies. That is reasonable. It should be drawn, with who may use it and how it is recorded.

How long does it take? Write a rough time on each step. A change that takes two hours to reach the live site may be fine. If a single step takes most of that time, you have found the thing to improve.

Then ask the question that matters most on a bad day. How do we put the last version back? Draw that route too, even if it is one arrow. A team that has agreed it, and tried it, recovers in minutes.

Write what you decide in the Rules frame. "A failed test stops the release" is a rule. So is "nobody releases their own change unchecked".

Using the template on doodleboard

The Release pipeline diagram template on doodleboard shows six steps. A developer saves a change to the code. The code starts a build and test step. A change that passes goes to checks, then to a test site. From the test site it is approved and goes to the live site.

Each step uses one of the software shapes on the board. A person is the developer and a folder is the code. A gear is the build, a shield is the checks and a server is each site. A Rules frame holds a note that asks "What stops a bad change?" Your answers become the rules.

Rename the steps to match your own pipeline. Double-click a shape to change its words, and double-click a connector to change its label.

To add a step, select Shapes in the toolbar, then select Shapes again and choose from the Software tab. Drag it out between two steps and redraw the connectors on each side.

Walk a recent change through the finished diagram with the team. Then walk through the last release that went wrong. If the diagram cannot show where it should have been caught, a step or a rule is missing.

Questions people ask

Who should draw the release pipeline?

Someone who releases changes, together with someone who does not. The first knows the steps. The second asks the questions that show which steps are unclear or done from habit.

What if our releases are done by hand?

Draw them anyway. A hand-run release still has steps, checks and an order. Seeing them on a page is the first move towards making the risky ones automatic.

How detailed should the diagram be?

Six to ten steps is usually right. Show each point where a change can be stopped or needs a yes. Leave out the commands and settings, which belong in the team's own notes.

Templates for diagrams and mapping

Put it on a shared whiteboard

Start for free with one board and up to three people, or try every feature for 7 days.

Start for freeSee pricing