Book Image

DevOps for Salesforce

By : Priyanka Dive, Nagraj Gornalli
Book Image

DevOps for Salesforce

By: Priyanka Dive, Nagraj Gornalli

Overview of this book

Salesforce is one of the top CRM tools used these days, and with its immense functionalities and features, it eases the functioning of an enterprise in various areas of sales, marketing, and finance, among others. Deploying Salesforce applications is a tricky event, and it can get quite taxing for admins and consultants. This book addresses all the problems that you might encounter while trying to deploy your applications and shows you how to resort to DevOps to take these challenges head on. Beginning with an overview of the development and delivery process of a Salesforce app, DevOps for Salesforce covers various types of sandboxing and helps you understand when to choose which type. You will then see how different it is to deploy with Salesforce as compared to deploying with another app. You will learn how to leverage a migration tool and automate deployment using the latest and most popular tools in the ecosystem. This book explores topics such as version control and DevOps techniques such as Continuous Integration, Continuous Delivery, and testing. Finally, the book will conclude by showing you how to track bugs in your application changes using monitoring tools and how to quantify your productivity and ROI. By the end of the book, you will have acquired skills to create, test, and effectively deploy your applications by leveraging the features of DevOps.
Table of Contents (14 chapters)
Title Page
Packt Upsell
Contributors
Preface
Index

Configuring a Jenkins job to retrieve metadata from a sandbox


We have created the Git repository with the metadata from the Salesforce Production organization in Chapter 5, Version Control. We will use the same sample project and GitLab repository, Salesforce_demo, with the current production code from the Salesforce Sandbox. The instructions are as follows:

  1. Create the branch to retrieve code from the sandbox:
Branch : sandbox_to_git  
  1. Log in to the Jenkins server and click on New Item to create a Jenkins job:

 

 

  1. Give the name Retrive_sandbox_to_git to the Jenkins job. As we are working on an Ant build project, select Build a Free-style Project. Click OK. The Freestyle project type is used to create a Jenkins project with any SCM using any build system:
  1. Configure the job. After the job has been created, we will go to the job configuration page. In the General tab, provide the project name and description, as follows:
    • Project Name: Retrive_sandbox_to_git.
    • Description: Job to retrieve metadata from...