Sub topic 18
Release practices for teams
This chapter assumes you have worked through the earlier chapters. You should know how work items, pipeline stages, pull requests and promotion fit together in DevOps Center, and you should be comfortable with basic Git. The goal here is to turn those mechanics into habits a team can follow every week.
Keep work items small and independent
A work item should carry one reviewable change. Small items are easier to review and test, and they conflict less often with other items. They are also easier to roll back, because you can revert one item without touching others.
- Name the work item after the user-facing outcome, not the metadata type.
- Avoid bundling unrelated fixes into one item "to save a promotion".
- Promote items in the order they were approved, so dependencies arrive in a predictable sequence.
Agree on a team workflow
Write down the rules and keep them near the project. A short agreement removes most arguments during a release.
| Practice | Why it helps |
|---|---|
| One developer environment per person | Changes from two people never mix in one org |
| Pull requests need a reviewer who is not the author | A second pair of eyes catches mistakes before promotion |
| Validate before promoting | Failures show up on the stage, not in production |
| Promote often, in small batches | Fewer changes per release means a smaller blast radius |
| Treat production changes as exceptions | Direct edits cause drift that DevOps Center cannot see |
Release flow at a glance
The diagram below shows the path a change should take. Each step is a point where the team can stop a bad change.
Check what a promotion will carry
Before a release, look at what has reached an earlier stage but not the next one. This keeps surprises out of the release window.
git fetch origin
git log --oneline origin/main..origin/UATEvery commit in this list will move with the next promotion. If you see a commit nobody expected, ask who owns it before you promote.
Keep the repository clean
Commit only real metadata. A .forceignore file keeps local tooling files out of the pipeline.
# .forceignore
**/jsconfig.json
**/.eslintrc.json
**/__tests__/**
.sfdx
.sfCommon mistakes
- Skipping the UAT stage under time pressure. The stage exists to catch problems. Use the hotfix process from the rollback chapter instead of bypassing it.
- Editing in production or a shared sandbox. Changes made outside a development environment are not tracked, so they are lost or overwritten.
- Leaving work items open for weeks. Long-lived branches drift from the main branch and produce large conflicts.
- Giving everyone release rights. Limit promotion to production to a small group, as described in the permissions chapter.
Exercise
A teammate wants to bundle five unrelated fixes into one work item so they only promote once. Give two reasons to split them.
Show answer
Smaller items are easier to review and test, and they conflict less with other work. They can also be rolled back independently, so one faulty fix does not force you to revert the other four.
Exercise
Which Git command shows the commits that would travel in the next promotion from UAT to the main branch?
Show answer
git log --oneline origin/main..origin/UAT, run after git fetch origin. It lists commits on UAT that are not yet on main.