Loading
Ongoing maintenance for Salesforce HelpRead More
Feature degradation | Gmail Email delivery failureRead More
Manage and Release Changes Easily and Collaboratively with DevOps...
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Promotion Options

          Promotion Options

          The available promotion options depend on if you’re promoting individual work items, work item bundles, or performing a validate-only deployment.

          Note
          Note Validate-only deployments and Salesforce CLI-based deployments are currently available only in DevOps Center (Managed Package).

          Merging Behavior for Promotions

          • When a promotion runs, DevOps Center merges the branch from the originating stage into the target stage's branch. It then deploys the metadata from the target stage's branch to the target stage's org.
          • If the deployment fails, we don’t finalize the merge to the target stage's branch. All branches remain in the state they were before you attempted the promotion.
          • If you perform a validate-only deployment, we don’t merge any changes to the target stage's branch until you perform the Quick Deploy.

          Deploy Changes Using Salesforce CLI

          You can deploy externally merged changes to the associated pipeline environment or perform a validate-only deployment using Salesforce CLI. See External Change Requests and Merges and Deploy Changes Using Salesforce CLI (Beta) for details.

          Promotion Options (Bundling and Versioned Pipeline Stages Only)

          If you’re promoting from the bundling or a versioned pipeline stage, we provide these promotion options.

          • Promote now—Promote all versioned work item bundles to the next pipeline stage.
          • Run a validate-only deployment—Run a validation to check the results of Apex tests and deploying components without saving any components in the org. See Run a Validate-Only Deployment for details.

          Changes to Promote

          When you promote individual work items through the pipeline, you can select whether to deploy only the items that changed or all the changes in the target stage’s branch.

          • Changes not in the <stage-name>’s branch (recommended)—Deploy only the files from that target stage's branch that aren’t yet in the target stage's org. In effect, you’re deploying only the files (changes) that recently came from the originating stage as part of this promotion. This behavior is the default, and is more efficient because we're deploying fewer files. In most circumstances, selecting this option is sufficient.
          • All metadata in the <stage-name>’s branch—Deploys all files in the target stage’s branch to the target stage’s org, after the branch has been merged. Select this option if your deployments are failing due to dependent or missing metadata. In some cases, the metadata doesn’t exist in the defined set of changes yet exists in the target stage branch. This option is useful when you or a colleague has committed and merged changes to the branch outside of DevOps Center but DevOps Center doesn’t know about them.

          Apex Test Options

          When you promote work items through the pipeline, decide which Apex tests to run based on pipeline stage and to which environments you’re deploying changes.

          • Default—In sandboxes and scratch orgs, no tests are run. In production, all local tests are run if your changes contain Apex classes or triggers. This option excludes tests included in installed packages.
          • Run local tests—All local tests are run, excluding tests included in installed packages.
          • Run all tests—All tests in your org are run, including tests from installed packages.
          • Run specified tests—Only the tests that you specify are run. Provide the names of test classes in a comma-separated list (no spaces between entries). Example: TestDeleteData,TestDataFactory.createTestRecords
           
          Loading
          Salesforce Help | Article