You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pipelines/release/deploy-multiple-branches.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,8 @@ In this section, you create the base Classic release pipeline and configure the
36
36
37
37
1. Under **Stages**, select the default stage and rename it to **Dev**. In the next steps, you configure this stage to deploy only when an artifact is produced from the *Dev* branch.
38
38
39
+
:::image type="content" source="media/rename-stage-classic-release.png" alt-text="A screenshot displaying how to rename a stage in a Classic release pipeline.":::
40
+
39
41
1. Under **Artifacts**, select **Add**.
40
42
41
43
1. Configure the artifact source:
@@ -44,8 +46,12 @@ In this section, you create the base Classic release pipeline and configure the
44
46
- Complete the required fields for that source type, such as project, pipeline, and default version.
45
47
- Select **Add**.
46
48
49
+
:::image type="content" source="media/add-artifact-to-classic-release.png" alt-text="A screenshot that shows how to add an artifact to a Classic release pipeline.":::
50
+
47
51
1. Select the **Continuous deployment trigger** icon on the artifact, and then turn on **Continuous deployment trigger** to create a release whenever a new artifact is available.
48
52
53
+
:::image type="content" source="media/enable-continuous-deployment-trigger.png" alt-text="A screenshot displaying how to enable the continuous deployment trigger in a Classic relealse pipeline.":::
54
+
49
55
1. In the **Dev** stage, select the **Pre-deployment conditions** icon.
50
56
51
57
1. Set **Deployment trigger** to **After release** so the stage starts automatically whenever a new release is created.
@@ -59,6 +65,9 @@ In this section, you create the base Classic release pipeline and configure the
59
65
60
66
With this filter in place, the **Dev** stage deploys only when the release is created from a build of the *Dev* branch.
61
67
68
+
:::image type="content" source="media/add-predeployment-conditions-to-classic-release.png" alt-text="A screenshot displaying how to set up the pre-deployment conditions in a Classic release pipeline.":::
69
+
70
+
62
71
## Add a new stage
63
72
64
73
In this section, you add a second stage (**Prod**) to the same release pipeline and configure it to deploy only when artifacts are built from the *main* branch. This lets you keep branch-to-stage routing consistent across environments.
@@ -86,6 +95,8 @@ In this section, you add a second stage (**Prod**) to the same release pipeline
86
95
87
96
With this filter in place, the **Prod** stage deploys only when the release is created from a build of the *main* branch.
88
97
98
+
:::image type="content" source="media/add-predeployment-conditions-to-classic-release-prod-stage.png" alt-text="A screenshot displaying how to configure the predeployment conditions for the Prod stage in a Classic release pipeline.":::
99
+
89
100
## Deploy to a specific stage
90
101
91
102
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.
0 commit comments