Building a package from Version Control
Overview
Convert and package your version control files to Salesforce Metadata components based on a Start Revision. You can also configure an ALM project and sprint to include only revisions tied to a user story and its status.
Procedure
Log in to your ARM account.
From the top navigation pane, navigate to Create New > New CI Job.

Choose the tile: Package from Version Control.

Enter a descriptive Job name.
Add a brief Description.
(Optional) Choose a Group to organize the job, or click
+to create one.The configuration page is divided into sections explained below.
Build
Select your Version Control system – ARM supports Git, SVN, and TFS.
Choose the Repository and Branch.
Under Build Using, pick one option:
Baseline Revision – Enter a revision manually or click Edit (
) to select it from a list.


Time Range – Specify a period so ARM fetches only revisions in that window.

Additional options in the Build section
Status Check API – Check the status of APIs running for the CI job.
Pull Request – Create a pull request for this job.
Merge Request – Create a merge request for this job.
Map ALM Project – Configure ALM (e.g., Jira) work item statuses to include in the build.
Important note: Build Using – Baseline Revision/Time Range and Trigger Build on Commit are unavailable when Map ALM Project is selected.
Trigger Build on Commit – Launch a build whenever changes are committed to the branch.
Process commit revision via hook only – Visible only for Git-type repos. When enabled, the build packages changes from the commit revision received via webhook up to the branch head, ensuring no commits are skipped.
Incremental Build – Fetch only metadata changed since the last successful deployment, dramatically reducing build time.
Prepare Destructive Changes – Delete unwanted metadata from the destination org before deployment.
Run Static Analysis Report – Identify code quality issues before production.

Apex PMD / Checkmarx – Set criteria such as date range and Priority. If the priority threshold is not met, the build is marked unstable.

CodeScan / SonarQube – Choose to scan all metadata or only newly added components, then set a Priority.

Run on all supported metadata types – Scan every retrieved component.
Run on newly added supported metadata types – Scan only newly added components.
Run on all supported metadata types from the full source – Scan the entire branch.

Scope options for supported metadata types
For details on running Static Code Analysis in CI jobs, see this guide.
Additional Profile Packaging Options
Remove Login IP Ranges – Omit IP-range restrictions from profiles.
Remove System and User Permissions – Omit profile permissions from deployment.
Exclude Metadata Types – Skip metadata you don’t need in the build.
Notifications
Send email notifications on build success or failure.

Schedule
Daily – Run every day at the chosen time or interval.
Weekly – Run on selected day(s) and time.
No schedule – Save the job and trigger it manually.
For credential usage details across CI job types, see the FAQs.
What Next?
After saving the job, ARM redirects you to the CI Job Results page, where you can trigger the first build.
Last updated
Was this helpful?

