Andrew Davis

Mastering Salesforce DevOps

A Practical Guide to Building Trust While Delivering Innovation

Foreword by Wade Wegner
Andrew Davis
San Diego, CA, USA
ISBN 978-1-4842-5472-1e-ISBN 978-1-4842-5473-8
© Andrew Davis 2019
This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed.
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein.
Distributed to the book trade worldwide by Springer Science+Business Media New York, 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail [email protected], or visit www.springeronline.com. Apress Media, LLC is a California LLC and the sole member (owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation.

To Ashley

“May I always be a manifestation of others’ good fortune”

Foreword

I’ve spent my entire career immersed in the world of software development. From early on, I fell in love with the power and the freedom that comes from being able to create magic with code. I’ve seen the birth of the Internet and have had the opportunity to share this passion for development with thousands of people around the world. But it didn’t take long for me to realize that while writing code can be fun, it’s not always the most productive way to get the job done. In fact, I’ve never felt more convinced about the importance of a low-code platform to enable people from every walk of life to experience that same joy and productivity I felt early in my career, creating apps using clicks and, sometimes, code. This is one of the most important things to remember about low-code: a unique and powerful low-code platform like the Lightning Platform lets you combine the power of both clicks and code to do more than you could do with either one alone.

In 2016, I left Microsoft when I was invited to reimagine the developer experience for Salesforce. I realized that this was a unique opportunity to share my love of low-code with the Salesforce community and to accelerate the pace of innovation on Salesforce by giving developers an entirely new way to build together and deliver continuously.

The DevOps movement has developed throughout our industry over the last 10 years into a rallying point for some of the most revolutionary ideas in business and technology. DevOps has a dual meaning, in that it includes a huge range of technological tools and techniques but also speaks to the importance of bringing disparate groups together. Salesforce was founded on the concept of Ohana , or community. Just like Salesforce has grown into one of the most passionate and collaborative communities on the planet, the DevOps movement has also inspired passion and a vision for how working together is integral to helping companies perform at levels never previously imagined.

At Dreamforce 2016, I had the privilege to go on stage to introduce Salesforce DX to the world and to share a vision that unites DevOps with the Lightning Platform for the first time. Shortly after that keynote, an earnest and persistent man started following me around the conference. As I walked to make it to a session, he introduced himself and explained that he’d been working on a similar initiative for his company, had anticipated this announcement, and implored me to let him join the pilot. Recognizing his sincerity, and that he might not leave me alone unless I relented, I invited Andrew Davis and his company, Appirio, to be the first consulting company to join the pilot for Salesforce DX.

I’m so glad I did because the rest is, as they say, history.

This book reflects the dedication and passion that Andrew brings to this topic. And it gathers in one volume all of the core ideas and values that all of us who worked on Salesforce DX have wanted to share but not had the time to write down. In this book you’ll see what brought me to Salesforce back in 2016: the power of DevOps and the world’s most powerful low-code platform united together. This union is expressed clearly and eloquently in this book.

We’re still at the beginning of this journey, both of Salesforce DX and, in a broader sense, of this magical new world that unites the human mind with technology in ways that are both exciting and awesome. DevOps is about working together—about human beings collaborating, working toward a common vision, and using technology to be efficient even at complex activities like building software. As we take these first steps into a new world where the only certainty is change, and where technology increasingly has the ability to determine our future, it is more important than ever that we work together.

This is a technical book. But it’s also a human book. It’s a book about how to get things done more easily, so we have more time to do what humans do best: to solve problems creatively. It’s an honor to introduce this book because I know what’s between the covers is the very best of what technology today has to offer: a practical guide to building together on a platform that invites unlimited creativity.

Wade Wegner, SVP Product Management, Salesforce

Redmond, Washington

August 2019

Advance Praise for Mastering Salesforce DevOps
“DevOps is the next frontier in managing Salesforce orgs for both developers and admins. This book has both the scope and depth to help any organization adapt modern software engineering and management methodologies to Salesforce. Or put another way—if you’re a Salesforce developer or admin, you need to read this book now.”

—Dan Appleman, Salesforce MVP; author of Advanced Apex Programming in Salesforce

“I was amazed at the completeness of this book. The depth and breadth presented here is not available in any single resource that I know of, not even Trailhead. It is not just the Salesforce specific portions either. The DevOps chapters provide a jumpstart for anyone who wants to understand what DevOps is and why it is critically important in today’s world.”

—David Brooks, VP Products, Copado Solutions; original product owner of AppExchange; one of the three founding PMs of the Force.com Platform

“Andrew Davis has written the essential reference for the next 5–10 years of Salesforce evolution. Salesforce has become a true cloud development platform, but its ecosystem of enterprise-class tools and techniques is just starting to catch up. All prospective and existing Salesforce developers should read this book if they aspire to be not just coders, but professional software engineers.”

—Glenn Weinstein, Co-founder of Appirio

“This book really gets to the heart of how to properly equip a team with the tools and process to go faster with the Salesforce platform.”

—Sanjay Gidwani, SVP, Copado

“In the last few years it’s become clear that for companies to innovate and succeed, IT must have speed and agility like never before. Within Appirio it was Andrew who really caught the wind of the DevOps movement and pushed the entire company in that direction. The power of a performance-oriented culture is that the best ideas can come from anywhere in the company, and it was exciting to watch that unfold as we moved to promote DevOps. I’m delighted that Andrew’s insights and passion for this topic are now being shared with the broader world. Those seeking to deliver maximum value from their teams and from Salesforce would be wise to read this book carefully.”

—Chris Barbin, Venture Partner, GGV Capital; Former CEO and Co-founder, Appirio

“Andrew gained experience deploying and developing SaaS applications for enterprise customers while navigating the new world of DevOps in the cloud, and put that into words that can reach readers at any technical level. This book truly delivers a thorough and practical guide to establishing DevOps for those rooted in the Salesforce platform. If you’ve been hesitant about implementing DevOps, or if you have tried and failed, this is the book for you.”

—Katie M. Brown, Director, Methodology at Okta, Delivery Excellence in the Cloud

“If you are using Salesforce and want to maximize your efficiency to make life easier for your teams, Andrew Davis’ Mastering Salesforce DevOps: A Practical Guide to Building Trust While Delivering Innovation provides a thorough approach for doing that using Salesforce DevOps. In addition to providing a multitude of technical details, Andrew smartly starts with why—why use Salesforce and why use DevOps specifically for Salesforce—and honestly addresses issues people have had with Salesforce before diving into all the details to help you succeed. Andrew is the acknowledged expert on DevOps for Salesforce and shares his insights and secrets in this book to make your life as a developer, administrator, or user better.”

—Dean Hering, Adjunct Associate Professor, Master of Engineering Management Program, Duke University

“With the rapid pace of development in technology, organizations need to find ways to deliver solutions more efficiently, while retaining high quality. DevOps is an approach to software delivery that ensures both speed and quality, which is important as organizations deploy increasingly complex Salesforce.com solutions. Andrew has dedicated over a half a decade to bring structure and rigor to DevOps on this platform. This is a must-read for anyone working in the software industry!”

—Matt Henwood, Executive Vice President, Service Delivery, 7Summits

“There’s never been a more important and exciting time to talk about Salesforce DevOps than right now. Expectations of getting value from an increasingly complex (and saturated) array of Salesforce clouds are high, competition is fierce, talent is scarce, and teams need to modernize to stay relevant. You want the best engine under the hood to make change happen. If you don’t, you’re doing it wrong. Anyone who deploys anything to production (which is everyone!) needs to read this book.”

—Andres Gluecksmann, Vice President, Enable Services, Traction on Demand

“DevOps is becoming a must-have skillset for every developer in today’s world. And it is especially crucial with the rapid pace of innovation on the Salesforce Platform. I think this book will become a go-to reference for Salesforce DevOps specialists seeking to leverage all the capabilities of Salesforce DX. Although this book is designed to teach how you can accelerate your Salesforce development lifecycle using CI/CD, even if you are new to Salesforce, the initial chapters will help you to understand the basics of this platform. I had the opportunity to work with Andrew for a couple of years. The best thing about working with him is how many new things you can learn from him, easily and in a very short amount of time. He’s been involved with Salesforce DX since it was first announced and this book gives us access to all his learnings and research.”

—Durgesh Dhoot, Platform Specialist, Salesforce

Acknowledgments

It’s been a great delight to get to know both the Salesforce community as well as the DevOps community over the last few years. As a lifelong technologist, I’ve always delighted in the endless puzzle-solving opportunities it presents. But I’ve been a human even longer than I’ve been a technologist, and both the Salesforce and DevOps communities are distinctively human communities. The degree of openness, collaboration, compassion, and enthusiasm in these communities is inspiring. And when an entire group is inspired, you find what Émile Durkheim called collective effervescence , a sense of joy accompanied by a softening of the boundaries between ourselves and others.

That we can be united in a common activity is one of the deepest miracles of being alive. That’s also one of the special joys of being part of an organization: that it provides an opportunity for individuals to unite in a shared endeavor. As Peter Drucker said, “The purpose of an organization is to enable ordinary human beings to do extraordinary things.” The cloud has enabled larger communities to collaborate in larger endeavors. And DevOps is enabling better coordination and communication in that process. It’s no wonder that the Salesforce and DevOps communities are incubating visions for a better world that go far beyond technological improvement.

This book largely captures what I know about this important topic. By sharing my knowledge, I’m also sharing my ignorance, and I welcome any feedback and corrections you have to offer. Every piece of knowledge in this book has come directly or indirectly from others, principally my colleagues at Appirio. I couldn’t have hoped for a better place to learn this discipline, and the people who’ve contributed to my education are too numerous to list.

There are no words to express my gratitude to my wife, Ashley , who has been endlessly patient and supportive throughout this learning process. My Sangha jewel, coach, and best friend, she’s endured my endless ramblings on this topic and knows far more about both Salesforce and DevOps than she ever wanted to. My parents and step-parents lovingly built the foundations for me to be healthy and free and supported me unfailingly even when my decisions led me far away from them physically and culturally. And the Kadampa community provided the ultimate opportunity to learn humility, peace, and the joy of living a meaningful life.

From Appirio I want to thank the Appirio DX team: Saurabh Deep , Abhishek Saxena , Ashna Malhotra , Bryan Leboff , Rahul Agrawal , Katie Brown , Kapil Nainani , Sahil Batra , and Durgesh Dhoot . You all believed in this vision and did the real work to make the project a reality. To Yoni Barkan , Roarke Lynch , Rebecca Bradley , Halie Vining , Craige Ruffin , Erik Golden , and Katie Boehner —you all are the real deal; I’m sorry we weren’t able to work together longer. I’m grateful to my other mentors and teachers at Appirio, especially to Geoff Escandon who brought the State of DevOps Report to my attention and challenged the early work I was doing saying “I don’t know what this is, but it’s definitely not DevOps.” I hope I’m getting closer.

It was Glenn Weinstein , Chris Barbin , and Erik Duffield at Appirio who championed this project at the highest levels and who fostered a performance-oriented culture in the company from the beginning. My coworkers at Oath also deserve special recognition for introducing me to continuous delivery. In particular, Matt Hauer dissuaded me from leading the team into branching hell and never let me ignore a broken build. David Meyer first challenged me to deliver “CI for the masses,” a project I’m still working on. Matt Henwood challenged me to “let my creative juices flow” and ran interference for me as this project got off the ground. Bob Larson asked for some short-term assistance to set up CI/CD for a big customer; two years and thousands of deployments worth of short-term assistance gave me the confidence to write this book. I’m particularly grateful to my partners in that endeavor, Alex Spears (who endured the misery of being mentored by me), Sreenath Gopal , and Raji Matthew . Special mention is also due to Lex Williams , Randy Wandell , Joe Castro , Andres Gluecksmann , Chris Bruzzi , Michael Press , Svatka Simpson , Neale Wooten , Jitendra Kothari , Prakash Gyamlani , Tommy Noe , Tommy Muse , James Wasilewski , Norman Krishna , Josh Davis , and everyone else who supported our DevOps initiatives in a hundred ways.

It’s a unique honor to work with John M. Daniel as the technical reviewer for this book. To have this work reviewed by a mind as sharp and experienced as his gives me far greater confidence that I’m not making this stuff up. And I’m grateful for the team at Apress , especially Susan McDermott , Rita Fernando , and Laura Berendson for affording this opportunity and for doing the hard work of bringing a book like this into existence.

Finally, to my new colleagues at Copado , especially David Brooks , Andrew Leigh , Ted Elliott , and Federico Larsen , the fun’s just getting started. I look forward to working with you to help thousands of organizations master Salesforce DevOps.

Table of Contents

Part II: Salesforce Dev65
Part III: Innovation Delivery139
Index 445

About the Author and About the Technical Reviewer

About the Author

Andrew Davis
../images/482403_1_En_BookFrontmatter_Figb_HTML.jpg

is a Salesforce DevOps specialist who’s passionate about helping teams deliver innovation, build trust, and improve their performance. He is a senior product manager for Copado, a leading DevOps platform for Salesforce. Before joining Copado, he worked as a developer and architect at Appirio, where he learned the joys and sorrows of release management and led the creation of Appirio DX, a set of tools to enable Salesforce CI/CD.

At different times, he led Appirio’s technical governance, DevOps, and certification programs and gained 16 Salesforce certifications. An experienced teacher and public speaker, he is a regular speaker at Salesforce conferences. He lives in San Diego with his amazing wife and very cuddly dog. Follow him at https://AndrewDavis.io or on Twitter at AndrewDavis_io.

 

About the Technical Reviewer

John M. Daniel
../images/482403_1_En_BookFrontmatter_Figc_HTML.jpg

has been working in the technology sector for over 20 years. During that time, he has worked in a variety of technologies and project roles. Currently, he serves as the Director of Platform Architecture at Rootstock Cloud ERP, a leading cloud-based ERP solution that is native to the Salesforce Platform. He is a Salesforce MVP and holds multiple Salesforce certifications, including Platform Developer I and II and most of the Technical Architect Designer certifications. He is currently working toward becoming a Certified Technical Architect. He loves to spend time with his family, swim and ride his Jeep at the beach, and work on open source projects such as Force-DI, AT4DX, and the DomainBuilder Framework. He co-leads his local Salesforce Developers User Group and can be found on Twitter at @ImJohnMDaniel.

 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.18.4