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/process/stages.md
+15-14
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ jobs:
63
63
- script: echo "Running tests"
64
64
```
65
65
66
-
This pipeline has one implicit stage and two jobs. The `stages` keyword is not used because there is only one stage.
66
+
This pipeline has one implicit stage and two jobs. The `stages` keyword isn't used because there's only one stage.
67
67
68
68
```yaml
69
69
jobs:
@@ -84,15 +84,15 @@ stages:
84
84
displayName: "Stage A - Build and Test"
85
85
jobs:
86
86
- job: A1
87
-
displayName: "Job A1 - Build"
87
+
displayName: "Job A1 - build"
88
88
steps:
89
89
- script: echo "Building the application in Job A1"
90
-
displayName: "Build Step"
90
+
displayName: "Build step"
91
91
- job: A2
92
92
displayName: "Job A2 - Test"
93
93
steps:
94
94
- script: echo "Running tests in Job A2"
95
-
displayName: "Test Step"
95
+
displayName: "Test step"
96
96
97
97
- stage: B
98
98
displayName: "Stage B - Deploy"
@@ -101,19 +101,20 @@ stages:
101
101
displayName: "Job B1 - Deploy to Staging"
102
102
steps:
103
103
- script: echo "Deploying to staging in Job B1"
104
-
displayName: "Staging Deployment Step"
104
+
displayName: "Staging deployment step"
105
105
- job: B2
106
106
displayName: "Job B2 - Deploy to Production"
107
107
steps:
108
108
- script: echo "Deploying to production in Job B2"
109
-
displayName: "Production Deployment Step"
109
+
displayName: "Production deployment step"
110
110
```
111
111
112
112
::: moniker-end
113
113
114
114
::: moniker range="<=azure-devops"
115
115
116
-
If you choose to specify a `pool` at the stage level, then all jobs defined in that stage use that pool unless specified at the job-level.
116
+
If you specify a `pool` at the stage level, all jobs in that stage use that pool unless the stage is specified at the job level.
117
+
117
118
118
119
```yaml
119
120
stages:
@@ -161,7 +162,7 @@ Pipelines must contain at least one stage with no dependencies.
161
162
162
163
For more information on how to define stages, see [stages in the YAML schema](/azure/devops/pipelines/yaml-schema/stages).
163
164
164
-
The following example stages run sequentially. If you don't use a `dependsOn` keyword, stages run in the order they are defined.
165
+
The following example stages run sequentially. If you don't use a `dependsOn` keyword, stages run in the order they're defined.
165
166
166
167
167
168
```yaml
@@ -290,12 +291,12 @@ When you specify **After release** or **After stage** triggers, you can also spe
290
291
291
292
#### [YAML](#tab/yaml/)
292
293
::: moniker range="<=azure-devops"
293
-
YAML pipelines don't support queuing policies. Each run of a pipeline is independent from and unaware of other runs. In other words, your two successive commits may trigger two pipelines, and both of them will execute the same sequence of stages without waiting for each other. While we work to bring queuing policies to YAML pipelines, we recommend that you use [manual approvals](approvals.md) in order to manually sequence and control the order the execution if this is of importance.
294
+
YAML pipelines don't support queuing policies. Each run of a pipeline is independent from and unaware of other runs. In other words, your two successive commits might trigger two pipelines, and both of them will execute the same sequence of stages without waiting for each other. While we work to bring queuing policies to YAML pipelines, we recommend that you use [manual approvals](approvals.md) in order to manually sequence and control the order the execution if this is of importance.
294
295
::: moniker-end
295
296
296
297
#### [Classic](#tab/classic/)
297
-
In some cases, you may be able to generate builds faster than
298
-
they can be deployed. Alternatively, you may configure multiple
298
+
In some cases, you might be able to generate builds faster than
299
+
they can be deployed. Alternatively, you might configure multiple
299
300
[agents](../agents/agents.md) and, for example, be creating releases from the same release pipeline
300
301
for deployment of different artifacts. In such cases, it's useful to
301
302
be able to control how multiple releases are queued into a
@@ -403,9 +404,9 @@ stages:
403
404
404
405
## Mark a stage as unskippable
405
406
406
-
Mark a stage as `isSkippable: false` to prevent pipeline users from skipping stages. For example, you may have a YAML template that injects a stage that performs malware detection in all pipelines. If you set `isSkippable: false` for this stage, Pipeline won't be able to skip malware detection.
407
+
Mark a stage as `isSkippable: false` to prevent pipeline users from skipping stages. For example, you might have a YAML template that injects a stage that performs malware detection in all pipelines. If you set `isSkippable: false` for this stage, your pipeline won't be able to skip malware detection.
407
408
408
-
In the following example, the Malware detection stage is marked as non-skippable, meaning it must be executed as part of the pipeline run.
409
+
In the following example, the Malware detection stage is marked as nonskippable, meaning it must be executed as part of the pipeline run.
409
410
410
411
```yaml
411
412
- stage: malware_detection
@@ -416,7 +417,7 @@ In the following example, the Malware detection stage is marked as non-skippable
416
417
...
417
418
```
418
419
419
-
When a stage is non-skippable, it will show with a disabled checkbox in the **Stages to run** configuration panel.
420
+
When a stage is nonskippable, it shows with a disabled checkbox in the **Stages to run** configuration panel.
420
421
421
422
:::image type="content" source="media/stages/stages-run-skip-stage.png" alt-text="Screenshot of stages to run with disabled stage. ":::
0 commit comments