Application technical professionals must limit their use of long-lived branches and instead use a single mainline of source code to succeed with continuous delivery. Using trunk-based development, developers spend less time merging and stabilizing source code and more time delivering functionality.
The Gartner Approach
The Guidance Framework
- Step 1: Use a Single-Branch Strategy
- The Traditional Way: Feature Branches
- The Better Way: The Single Branch
- Step 2: Use a Modern Architecture That Allows for Deployment in Isolation
- Test in Isolation
- Design Applications for Testability
- Step 3: Implement Feature Toggling
- The Difference Between Releasing Functionality and Deploying Functionality
- Step 4: Adopt Continuous Development Patterns
- Enforce Quality Gates
- Continuously Test Toggled Functionality
Risks and Pitfalls
- Teams Find It Difficult to Maintain a Stable Mainline
- Teams Must Properly Manage Toggles
- Git Has Scaling Problems With Branches
- Teams Don’t Have Control of Their Overall Architecture
Gartner Recommended Reading
©2020 Gartner, Inc. and/or its affiliates.
All rights reserved.
Gartner is a registered trademark of Gartner, Inc. and its affiliates.
This publication may not be reproduced or distributed in any form without Gartner’s prior written permission.
It consists of the opinions of Gartner’s research organization, which should not be construed as statements of fact.
While the information contained in this publication has been obtained from sources believed to be reliable, Gartner disclaims all warranties as to the accuracy, completeness or adequacy of such information.
Although Gartner research may address legal and financial issues, Gartner does not provide legal or investment advice and its research should not be construed or used as such.
Your access and use of this publication are governed by Gartner’s Usage Policy.
Gartner prides itself on its reputation for independence and objectivity.
Its research is produced independently by its research organization without input or influence from any third party.
For further information, see
Guiding Principles on Independence and Objectivity.