Skip main navigation

£199.99 £139.99 for one year of Unlimited learning. Offer ends on 28 February 2023 at 23:59 (UTC). T&Cs apply

Find out more

How to build Automation and Continuous Integration

This article will look at automated builds and continuous integration, and explain why they are an important part of the DevOps process.

What are automated builds?

Automated builds are valuable because they:

  • Validate that code compilation doesn’t just succeed ‘on my machine.’
  • Run as many tasks as needed, such as scripting, testing, packaging or anything else required.
  • Publish to a drop folder or network share to be picked up for deployment.
  • Maintain an audit history for build details, drop details and associated work items.

In DevOps, automated builds are an integral part of continuous integration (CI), which is the practice of merging all developer working copies to a shared code line several times a day, and validating each integration with an automated build. In practice, CI is often defined as having a build with unit tests that execute at every commit or check-in to version control.

Continuous integration (CI) benefits

  • Improving code quality based on rapid feedback.
  • Triggering for automated testing for every code change.
  • Better managing technical debt and conducting code analysis.
  • Reducing long, difficult and bug-inducing merges.
  • Increasing confidence in code long before production.

When you use automated builds and continuous integration, you should ensure that you’re optimising for the speed of CI and how quickly code flows from one developer to another for fast feedback in the build process (including tests). For example, if you need to perform a four-hour security scan, you shouldn’t hold up a CI build.

Regarding deployments, you should consider holding up a release if that could break the ‘build’ or release before going to production.

Automated builds are an important part of the DevOps process and should constantly be improved for efficiency and stability.

This article is from the free online

Microsoft Future Ready: Fundamentals of DevOps and Azure Pipeline

Created by
FutureLearn - Learning For Life

Our purpose is to transform access to education.

We offer a diverse selection of courses from leading universities and cultural institutions from around the world. These are delivered one step at a time, and are accessible on mobile, tablet and desktop, so you can fit learning around your life.

We believe learning should be an enjoyable, social experience, so our courses offer the opportunity to discuss what you’re learning with others as you go, helping you make fresh discoveries and form new ideas.
You can unlock new opportunities with unlimited access to hundreds of online short courses for a year by subscribing to our Unlimited package. Build your knowledge with top universities and organisations.

Learn more about how FutureLearn is transforming access to education