Prerequisites for a Successful Enterprise Continuous Delivery Implementation

Continuous delivery as a methodology and tool to meet the ever-increasing demand to deliver software at the speed of ideas is quickly gaining the attention of businesses today. Continuous delivery, with its emphasis on keeping software in a release-ready state at all times, is a natural evolution from continuous integration and agile software development practices. However, the cultural and operational challenges to achieving continuous delivery are much greater. For most organizations, continuous delivery requires adaptation and extension of existing software release processes. The roles, relationships and responsibilities of people across the organization can also be impacted. The tools used to deliver, update and maintain software must support automation and collaboration properly, in order to minimize delays and provide tight feedback cycles across the business.

Organizations looking to transition to continuous delivery should consider the following seven pre-requisites – these are practical steps that will allow them to successfully execute the cultural and operational changes within the regulatory and business constraints they face.

1. Development, quality assurance and operations teams must have shared goals; and communicate

While continuous integration limits its scope to the development team, continuous delivery embraces the testing phases of the quality assurance team (QA) and the deployments to staging and production environments that are managed by the production operations team. This is a major transformation in software development, and to succeed in transforming a continuous integration platform into a continuous delivery platform, integrating the QA and operations teams in its governance, as well involving the development team is critical. Collaboration and communication are a vital component of successful software development today, and in a continuous delivery environment it has to take centre stage.

2. Continuous integration must be working prior to moving to continuous delivery

Continuous delivery is an extension of continuous integration. The prerequisite to continuous delivery is to have continuous integration in place and working during the project, including source control management, automated builds and unit tests, as well as continuous builds of the software.

3. Automate and version everything

Continuous delivery involves the continuous repetition of many tasks such as building applications and packages, deploying applications and configurations, resetting environments and databases. All these tasks in continuous delivery should be automated with tools and scripts, and kept under version control so that everything can be audited and reproduced.

4. Sharing tools and procedures between teams is critical

Continuous delivery aims to validate the deployment procedures and automation used in the production environment. To do this successfully, these procedures and automations must be used as early on as possible so that they are extensively tested when used to deploy software to production. In most cases, the same tools can be used in all environments, e.g. integration, staging and production.

The automation scripts should be managed in shared source code repositories so that each team - development, QA and operations – can enhance tools and procedures. Mechanisms like pull-requests can help the governance of these shared tools and scripts.

5. The application must be production-friendly to make deployments non-events

Applications should simplify their deployment and rollback procedures so that deployments in production become non-events. A major step to achieve this is to reduce the number of components and of configuration parameters deployed. The ease of rollbacks is important when deploying new versions; that is, allowing the ability to quickly rollback in case of problems. Feature toggles help to de-couple the deployment of binaries from feature activation - a rollback can then simply be the deactivation of a feature, thanks to a toggle.

Special attention should be paid to any changes of database schemas, as this can make deployments and rollbacks much more complex. The schema-less design pattern of NoSQL databases brings a lot of flexibility, moving the responsibility of the schema from the database to the code. This concept can also be applied to relational databases.

6. The infrastructure must be project-friendly, it’ll empower the people and teams

Infrastructures should provide all the tooling (GUIs, APIs and SDKs) and documentation required to empower the development and QA team and make them autonomous in their work. These tasks include:

  • Deploying the application version of their choice in an environment
  • Managing configuration parameters (view, modify, export, import)
  • Managing databases (creating snapshots of data, restoring a database snapshot)
  • Allowing view, search and notification alerts on application logs

Public cloud platforms, mainly Infrastructure as a Service (IaaS) and Platform as a Service (PaaS), are examples of project-friendly platforms.

7. Application versions must be ready to be shipped into production

One of the most important goals of continuous delivery is to allow the product owner to decide to deploy into production any version of the application that successfully goes through the continuous delivery pipeline; not only the version delivered at the end of an iteration with a “beautiful” version number.

Reaching this target requires many changes in the way applications are designed:

  • Features that are not yet validated by the QA team should be hidden from end users. Feature toggles and feature branches are two key ways to implement this.
  • Build tools should evolve from the concept of semantic versions separated by intermediate unidentified snapshot versions, to a continuous stream of non-semantic versions. Subversion repositories help provide ordered version numbers thanks to a revision number. Git, the free, open-source distributed version control system, is more complex to use for this, due to its un-ordered commit hashes; special tooling may be useful to make this version identifier more “human readable.”

The crux is that continuous delivery is not just about a set of tools, it is also about the people and organizational culture. Technology, people and process need to be aligned to make continuous delivery successful; and a collaborative approach is fundamental to its success. Implementing these best practices can allow organizations to reap the rewards of a more fluid, automated approach to software development – and one that provides business agility too.

Cyrille Le Clerc
Director of Product Management
CloudBees

Follow Cyrille on Twitter

This blog entry was originally posted on Beta News.

 

Add new comment