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:
- 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:
![](https://static.packt-cdn.com/products/9781788833349/graphics/fc5669d1-265d-4ed1-bd54-288be994f27e.png)
- 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:
![](https://static.packt-cdn.com/products/9781788833349/graphics/461771ed-92e3-464f-8ee6-266a4f526dc4.png)
- 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...