Skip to content

Commit 87ca371

Browse files
author
Rami Bououni
committed
stage deployment
1 parent 3af6630 commit 87ca371

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

docs/pipelines/release/deploy-multiple-branches.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,25 @@ In this section, you add a second stage (**Prod**) to the same release pipeline
8888

8989
## Deploy to a specific stage
9090

91-
Now that you've set up your stages, every time a new artifact is available, the release pipeline will detect which branch triggered the build and deploy only to the appropriate stage.
91+
At this point, your release pipeline is configured to route deployments by branch: artifacts from the *Dev* branch deploy to the **Dev** stage, and artifacts from the *main* branch deploy to the **Prod** stage. Use the following checks to validate that the branch filters are working as expected.
92+
93+
1. Trigger a build from the *Dev* branch so a new artifact version is published.
94+
95+
1. Open **Pipelines** > **Releases**, and then open the newly created release.
96+
97+
1. Verify that the **Dev** stage starts (or is queued), and that the **Prod** stage is skipped because the artifact branch doesn't match its filter.
98+
99+
1. Trigger a second build from the *main* branch.
100+
101+
1. Open the new release and verify the opposite behavior: the **Prod** stage starts, and the **Dev** stage is skipped.
102+
103+
1. If a stage doesn't behave as expected, open that stage's **Pre-deployment conditions** and confirm the **Artifact filters** branch value and selected artifact source.
104+
105+
By validating both branch paths, you can confirm that each environment deploys only from the branch intended for that stage.
92106

93107
:::image type="content" source="media/deploy-to-specific-stage.png" alt-text="A screenshot displaying deployment to a specific stage.":::
94108

95-
## Related articles
109+
## Related content
96110

97111
- [Create a multi-stage release pipeline](define-multistage-release-process.md)
98112

0 commit comments

Comments
 (0)