Pipelines and promotion
Stages, routes, stage rules and presets, and how one snapshot is promoted from environment to environment.
A pipeline is the path a change takes from one environment to the next, such as development, then staging, then production. It says which environments, in what order, and what a snapshot must satisfy before it moves on. Promotion is the move itself: the exact snapshot from one stage is given to the next, with nothing rendered again.
The mental model
main route
dev ───────────▶ staging ───────────▶ QA ───────────▶ prod
deployment Auto-promote By request By request
sync soak 4h sign-off waves
└──────── hotfix route ───────────────▶| Part | Meaning |
|---|---|
| Stage | One step, bound to one environment. It has a name, how snapshots arrive, and rules. A pipeline has 1 to 20 stages, one per environment. |
| Route | An arrow between stages. The main routes form one line through every stage. A hotfix route skips ahead, for example from staging straight to prod. |
| Apps | The apps the pipeline carries. An app belongs to one pipeline. |
| Owner team | The team that owns the pipeline. Only Admins and Owners create pipelines; a team cannot widen its own access by editing one. |
| Version | Every save is a new version. You can view an old one and restore it, which saves a copy as the newest. |
A deployment finds its pipeline by itself: the first active pipeline, by name, that carries one of its apps and has a stage in its environment. The deployment's Settings then say "Set by the pipeline's stage" for how it gets snapshots.
How snapshots arrive at a stage
The first stage has no incoming route, so it has no arrival choice: its deployments' own arrival decides how builds land, usually Automatic on push to a branch. Every later stage arrives one of two ways.
| Arrival | Meaning |
|---|---|
| Auto-promote | The stage takes the previous stage's snapshots once they qualify, optionally after a soak: time a snapshot must run before it moves on. |
| By request | Wardn promotes nothing into the stage by itself; a person promotes a snapshot, ad hoc or as a release. |
Promotion belongs to the pipeline: a deployment never takes snapshots from another deployment by itself, see Promote. Whichever way a snapshot arrives, it passes the arrival checks. Auto-promotion runs without anyone acting; a promotion by hand is covered in Promote by hand.
Stage rules
A stage can carry rules that say what a snapshot needs to enter it and what it must show before the next stage accepts it. They are judged by the same engine as your guardrails, every time a snapshot is about to arrive.
| Rule | Says | Section |
|---|---|---|
| Approval | A set number of approvals. | Gate |
| Ticket status | A change ticket has a given status. Not working yet. | Gate |
| Deploy window | Days and a time range. | When |
| Health | Shown on the stage; health is always checked. | Gate |
| Test run | Tests passed and none failed. | Qualification |
| Soak | The snapshot has run healthy for at least a time. | Qualification |
| Incidents | No open incident. | Qualification |
| Sign-off | A set number of designated people sign off, optionally not the snapshot's author. | Qualification |
| Agent autonomy | The most an agent may do in this stage. | Gate |
The Gate and When rules hold a snapshot at the door. The Qualification rules judge a snapshot that already runs in the stage, so they never hold it back from arriving. A route can also require that the snapshot was qualified in the previous stage, and that is checked whenever a snapshot arrives. Qualification is explained in Qualification and sign-off; the editor is in Stage rules.
A stage can narrow which deployments it covers below "every deployment of the pipeline's apps in this environment" (stored, not applied yet), and a stage's rollout splits a release into waves by cluster label.
Presets
A preset is a saved shape to start from: a whole pipeline, one stage, a rollout or a guardrail. Four pipeline presets ship with every organization:
| Preset | Shape |
|---|---|
| Dev → staging → QA → prod | Auto to staging, QA tests and sign-off, prod by request with waves. |
| Auto-promote pipeline | Every stage syncs on merge or auto-promotes after a soak. |
| Approval pipeline | Every stage by request, one approver. |
| Tenant waves | One stage per environment, waves by tenant label. |
Applying a preset copies it into a draft. You can keep the stage linked to the preset, but linked stages do not follow later changes to the preset yet. Wardn ships four pipeline presets: Dev → staging → QA → prod, Auto-promote pipeline, Approval pipeline and Tenant waves.
What is built
| Part | State |
|---|---|
| Creating pipelines, stages and routes; versions, restore; apps; presets | Built. |
| Stage rules judged on every arrival (gate, windows, the route's "qualified") | Built. The ticket rule and a stage-only approval rule do not work fully yet; see Stage rules. |
| Qualification: soak, tests, incidents, sign-off and the verdict per snapshot | Built. See Qualification and sign-off. |
| Moving a snapshot automatically (auto-promotion) | Built. |
| Moving a snapshot by hand: ad hoc, or as a release with waves | Built, through Releases and the deployment's Snapshots tab. |
| Narrowing a stage's deployments, most arrival choices, what to do on a verdict, rollout failure handling | Stored; not applied yet. |
| Runs on a pipeline's History tab | Not recorded yet. |
| Changes need a review, notifications, preview environments in pipeline settings | Stored; nothing enforces or delivers them. |
Pipelines and access
Members of a team that owns a pipeline can read it. Creating a pipeline needs the right to create pipelines, read access to the team, and read access to each environment and app it uses. Moving an app out of another pipeline needs the right to manage that pipeline. See Access model.
Guides that use this
- Pipelines: create a pipeline, add stages and apps, use presets.
- Stage rules.
- A QA stage with sign-off: build a pipeline, qualify a snapshot in QA and promote it.
- Protect production, which uses the guardrails that apply to promotions.