DevOps Center Pipeline
This skill activates when a practitioner needs to set up, operate, or troubleshoot a Salesforce DevOps Center pipeline — the point-and-click release management tool built natively in Salesforce. It covers pipeline design, work item lifecycle, bundle promotion, source control connectivity, and conflict resolution. It does NOT cover SFDX CLI deployments, unlocked packages, or change sets.
Before Starting
Gather this context before working on anything in this domain:
- Which DevOps Center the org runs. There are two. The DevOps Center managed package is enabled by the Dev Hub setting
enableDevOpsCenterGA(API 56.0+), which the Metadata API guide now calls "an older version of DevOps Center". The next-generation DevOps Center is enabled byenableALMDevopsCorePref(API 65.0+) and stores its pipeline, stages, work items, and requests as standard objects (DevopsPipeline,DevopsPipelineStage,WorkItem,DevopsRequestInfo, API 66.0–67.0). Migration between them (enableDevopsCenterMigrationPref, API 67.0) is a developer preview. Everything below about objects and field values is the next-generation data model. - Development environments have source tracking. Developer and Developer Pro sandboxes with source tracking, and scratch orgs, are the supported development environments; Developer Edition orgs have no source tracking and can't be used as development environments in DevOps Center.
- A source control repository exists. The next-generation provider record (
SourceCodeRepoProvider) supportsGITHUB(default) andBITBUCKET, and names the Named Credential DevOps Center uses to connect. - Who administers the pipeline and who only works items. Decide the two groups before setup and assign DevOps Center access from what Setup lists for the edition in use; do not copy permission set names from older guides.
- The common wrong assumption — practitioners often assume DevOps Center is a wrapper around
sf project deploy start. It records its own work items, branches, promotions, and deployments, so out-of-band deploys to the same orgs leave its records and branches out of step with the org.
Questions to Ask Before Configuring
| Ask | Why it matters | What a good answer adds |
|---|---|---|
| Is the org on the DevOps Center managed package or the next-generation DevOps Center? | The two are enabled by different Dev Hub settings and only the next-generation one exposes the Devops* / WorkItem objects this skill queries (gotcha 8). | The right troubleshooting path and data model from the first step. |
| Which org is each developer's development environment, and does it have source tracking? | Only source-tracked Developer/Developer Pro sandboxes and scratch orgs qualify; enabling the setting affects sandboxes created or refreshed afterwards (gotcha 3). | A development-environment list that will actually capture changes. |
| Which source control provider and account own the repository? | The provider is GitHub or Bitbucket and the connection runs through a Named Credential; a personal account breaks the pipeline when that person leaves (gotcha 5). | A service-owned provider connection and a named repository. |
| Which stage should start bundling work items together? | Bundling is a per-stage flag (IsBundled); deciding late reshuffles promotions already in flight (gotcha 4). | One agreed bundling stage and a release cadence for it. |
| Which test level must each stage's deployment run? | The default test level runs no tests in sandboxes and all local tests in production, so QA promotions can pass untested (gotcha 7). | An explicit TestLevel per stage and the test list for RunSpecifiedTests. |
| Does anyone deploy to pipeline orgs outside DevOps Center (CLI, change sets, Setup edits in stage orgs)? | Out-of-band changes leave stage branches behind the org; DevOps Center's back sync and rebase operations exist to bring environments back in step (gotcha 2). | A rule that every change to a pipeline org enters as a work item, with back sync as the documented recovery. |
| Who reads failed operations, and where? | Promotion and commit failures are recorded on DevopsRequestInfo with Status = ERROR and ErrorDetails; nobody looking there means stalled promotions sit unnoticed (gotcha 1). | A named owner and the query in Recommended Workflow step 5. |
A proper pipeline setup adds a written stage map, a bundling decision, and a test level per stage before the first work item exists, where "just clicking through the wizard" produces a pipeline whose QA stage runs no tests and whose failures nobody can find.
Core Concepts
Work Items
A work item is a logical unit of work — a user story, task, or bug — that tracks metadata and configuration-data changes until the work is complete and part of the release pipeline. Each work item has its own branch in the repository (the object reference's example branch name is feature/WI-000001). In the next-generation data model, WorkItem.Status moves through NEW, IN_PROGRESS, IN_REVIEW (changes committed and a pull request created for review), READY_TO_PROMOTE, PROMOTED, and finally CLOSED when the work is promoted through the entire pipeline. Two exception states matter for troubleshooting: MERGE_CONFLICT (conflicts must be resolved before promotion) and COMBINED (merged into another work item to resolve conflicts or dependencies). NEVERED marks an inactive item that won't be promoted.
Pipeline Stages
A DevopsPipelineStage connects a pipeline, an environment (DevopsEnvironment, currently always a Salesforce org), and the source control branch used for that stage. Stages are linked through NextStageId; the production stage has a null NextStageId. Promotions move work forward along that chain — a regression found in UAT is fixed by a new work item that starts in development, not by promoting backwards. The repository's default branch (typically main in GitHub) holds the changes you plan to release.
Bundling and Promotion
A stage promotion (DevopsPipelnStgProm) moves one or more work items to the next stage, and DevopsPipelnStgPromWkItem records the merge of each work item into the target stage branch, including the pull request reference. Bundling is configured per stage: DevopsPipelineStage.IsBundled (default false) indicates that work items in that stage are bundled together for promotion. The design decision is therefore which stage bundles, not "create a bundle object".
Conflicts, Combine, Rebase, and Back Sync
When two work items change the same component, the later one reaches MERGE_CONFLICT. The recovery operations DevOps Center records on DevopsRequestInfo.OperationType are REBASE, REBASE_AND_COMBINE, and BACK_SYNC; combining leaves the absorbed work item in COMBINED. A back sync brings changes from a pipeline stage (BackSyncStageId) back into a development environment so developers stop building on stale metadata. The merge itself is recorded per work item on DevopsPipelnStgPromWkItem, whose MergeRemoteReference holds the provider's pull request reference.
Deployments and Test Levels
Each deployment to a stage environment is a DevopsEnvDeployment record with a TestLevel (Default — no tests in sandboxes, all local tests in production; NoTestRun; RunLocalTests; RunAllTestsInOrg; RunSpecifiedTests with the class list in RunTests) and an IsFullDeploy flag (deploy everything in the branch instead of just the changes). Validate-only deployment is not supported in the next-generation DevOps Center.
SELECT Name, OperationType, Status, Message, ErrorDetails, RequestCompletionDate
FROM DevopsRequestInfo
WHERE Status IN ('ERROR', 'INTERRUPTED')
ORDER BY CreatedDate DESC
LIMIT 20
Common Patterns
Mode 1: Simple Linear Pipeline (Admin Team)
When to use: A small admin team with one source-tracked Developer sandbox and production. Minimal parallel work. Moving from change sets to a source-tracked workflow.
How it works:
- Turn on source tracking for sandboxes in production (
SourceTrackingSettings.enableSourceTrackingSandboxes) and refresh or create the Developer sandbox afterwards. - Enable DevOps Center, connect the source control provider through its Named Credential, and create or connect the repository.
- Create a pipeline with two stages: Development and Production (production's
NextStageIdis empty). - Create a work item per change; it gets its own branch.
- Make the change in the development environment, commit it to the work item, and move it to
READY_TO_PROMOTE. - Promote it; check the resulting
DevopsRequestInforecord if the promotion does not reachSUCCESS.
Why not change sets: Change sets have no version history and no conflict detection; DevOps Center records every change against a work item and a branch while staying point-and-click.
Mode 2: Multi-Stage Pipeline with a Bundling Stage (Mid-Size Team)
When to use: A team running parallel sprints whose work items share components (page layouts, permission sets, flows).
How it works:
- Stages Dev → QA → UAT → Production, each a different environment.
- Developers promote individual work items into QA as they finish.
- Set
IsBundledon the stage where the release is assembled (commonly UAT), so items there promote onward together. - Set an explicit test level for every stage deployment; do not rely on
Defaultfor QA and UAT. - After each promotion into a shared stage, back sync development environments that build on it.
Why bundling matters: Without a bundling stage, two items that touch the same flow promote separately and the second one hits MERGE_CONFLICT at whichever stage it reaches last.
Mode 3: Combining Work Items to Manage Dependencies
When to use: Work item B depends on work item A (a flow that references A's new field), so promoting B alone fails.
How it works: Combine the items (recorded as REBASE_AND_COMBINE); the absorbed item moves to COMBINED and its changes travel with the surviving item. Confirm both are on the same release schedule first — the combined item promotes as one unit.
Decision Guidance
| Situation | Recommended Approach | Reason |
|---|---|---|
| Single developer, two orgs, no parallel work | Individual work item promotion, no bundling stage | Bundling adds overhead with no benefit when there is no parallelism |
| Multiple developers, shared metadata components | Set IsBundled on the release-assembly stage | Work items in that stage promote together; one deployment per release |
| Work items have a metadata dependency | Combine them before promoting | The dependent components travel in one item |
| Promotion stuck or failed | Query DevopsRequestInfo for ERROR / INTERRUPTED, read ErrorDetails | The request record is the documented place to troubleshoot stalled operations |
| Development environment is behind the stage it builds on | Back sync from that stage | BackSyncStageId names the stage changes flow back from |
| Team also uses SFDX CLI deployments alongside DevOps Center | Separate the orgs completely — do not mix (team practice) | CLI deploys leave stage branches and work item records describing a different org |
| Need rollback after a bad production promotion | Create a new work item that reverts the change and promote it through all stages (team practice) | Keeps the branch history and the org in step |
Recommended Workflow
- Identify the DevOps Center edition from
settings/DevHub.settings-meta.xml(enableDevOpsCenterGAvsenableALMDevopsCorePref) and confirm source tracking for development sandboxes fromsettings/SourceTracking.settings-meta.xml. - Fill in
templates/devops-center-pipeline-template.md: stage map (environment, branch, next stage), bundling stage, and test level per stage; answer every row of the Questions table above. - Export the stages with
sf data query -o <devops-center-org-alias> -q "SELECT Id, Name, DevopsPipelineId, NextStageId, IsBundled, DevOpsEnvironmentId FROM DevopsPipelineStage" --json > devops/stages.jsonand runpython3 skills/devops/devops-center-pipeline/scripts/check_devops_center_pipeline.py --manifest-dir .over the project; fix every ERROR (no production stage, a cycle inNextStageId). - Run a first work item end to end through every stage before onboarding the team; record the
DevopsEnvDeploymenttest level that actually ran. - For any stuck promotion, run the
DevopsRequestInfoquery in Core Concepts and act onErrorDetails; forMERGE_CONFLICT, rebase or combine, then back sync affected development environments. - Re-run the checker and the Review Checklist before the first production promotion.
Review Checklist
Run through these before marking work in this area complete:
- [ ] The DevOps Center edition (managed package or next-generation) is recorded, and only one is in active use for the project
- [ ] The source control provider (GitHub or Bitbucket) is connected through a service-owned Named Credential
- [ ] Every development environment is a source-tracked Developer/Developer Pro sandbox or a scratch org
- [ ] Exactly one stage has an empty
NextStageId(production) and theNextStageIdchain has no cycle - [ ] The bundling stage is decided and
IsBundledis set only where intended - [ ] Every stage deployment has an explicit test level; QA/UAT do not rely on
Default - [ ] Stage branches are protected in the provider against deletion and force pushes (team practice)
- [ ] No SFDX CLI deployments or direct Metadata API deploys target orgs managed by the pipeline
- [ ] A named owner monitors
DevopsRequestInforecords inERRORorINTERRUPTED
Salesforce-Specific Gotchas
Full list in references/gotchas.md. The three that cost the most time:
- Failures live on the request record —
DevopsRequestInfo.ErrorDetailsholds the error for a failed promotion, commit, or back sync. Defaulttest level skips tests in sandboxes — a QA stage onDefaultpromotes without running Apex tests.- Validate-only deployments are not supported in the next-generation DevOps Center — plan check-only runs outside it.
Output Artifacts
| Artifact | Description |
|---|---|
| Pipeline stage design | Mapping of pipeline stages to environments, branches, next stage, bundling flag, and test level |
| Work item workflow guide | Status path from NEW to CLOSED, including MERGE_CONFLICT and COMBINED handling |
| Bundling decision | Which stage bundles and why |
| Troubleshooting query | DevopsRequestInfo query and the owner who runs it |
| Pre-production promotion checklist | Verification steps before promoting to production |
Reference Files
| File | Use it for |
|---|---|
| references/examples.md | Change-set-to-DevOps Center migration, a bundling-stage sprint, and the CLI-mixing anti-pattern |
| references/gotchas.md | Eight platform behaviours with avoidance steps |
| references/llm-anti-patterns.md | Answers AI assistants get wrong about DevOps Center |
| references/well-architected.md | Pillar framing and the corpus lines behind each claim |
| references/metadata-examples.md | Dev Hub and source tracking settings XML, stage export JSON, and troubleshooting SOQL |
Related Skills
devops/change-set-deployment— Legacy change set workflow; use when migrating a team from change sets to DevOps Center or when DevOps Center is not availabledevops/scratch-org-management— Managing scratch org definitions and Dev Hub; needed when development environments are scratch orgsdevops/github-actions-for-salesforce— Full CI/CD automation with GitHub Actions; use when the team needs automation beyond what DevOps Center provides nativelydevops/bitbucket-pipelines-for-salesforce— The same for teams whose repository lives in Bitbucketadmin/sandbox-strategy— Sandbox type selection, refresh scheduling, and data masking; use alongside this skill when planning the org topology for pipeline stagesadmin/change-management-and-deployment— Release planning, approval gates, and rollback planning at the process level