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:
- Create the branch to retrieve code from the sandbox:
Branch : sandbox_to_git
- Log in to the Jenkins server and click on
New Item
to create a Jenkins job:

- Give the name
Retrive_sandbox_to_git
to the Jenkins job. As we are working on an Ant build project, select Build aFree-style Project
. ClickOK
. The Freestyle project type is used to create a Jenkins project with any SCM using any build system:

- 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...