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/conditions.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Pipeline conditions
3
3
description: Learn about how to specify the conditions under which each Azure Pipelines stage, job, or step runs.
4
4
ms.topic: conceptual
5
5
ms.assetid: C79149CC-6E0D-4A39-B8D1-EB36C8D3AB89
6
-
ms.date: 06/18/2024
6
+
ms.date: 06/20/2024
7
7
monikerRange: '<= azure-devops'
8
8
---
9
9
@@ -19,15 +19,15 @@ This article describes the conditions under which an Azure Pipelines stage, job,
19
19
20
20
You can override or customize this behavior by forcing a stage, job, or step to run even if a previous dependency fails, or by specifying a custom condition.
21
21
22
+
> [!NOTE]
23
+
> For Classic pipelines, you can specify the conditions under which the task or job runs in the **Control Options** of each task, and in the **Additional options** for a job in a release pipeline.
24
+
22
25
## Conditions under which a stage, job, or step runs
23
26
24
27
In the pipeline definition YAML, you can specify the following conditions under which a stage, job, or step runs:
> For Classic pipelines, you can specify the conditions under which the task or job runs in the **Control Options** of each task, and in the **Additional options** for a job in a release pipeline.
30
-
31
31
By default, stages, jobs, and steps run if all direct and indirect dependencies succeed. This status is the same as specifying `condition: succeeded()`. For more information, see [succeeded status function](expressions.md#succeeded).
32
32
33
33
When you specify a `condition` property for a stage, job, or step, you overwrite the default `condition: succeeded()`. Specifying your own conditions can cause your stage, job, or step to run even if the build is canceled. Make sure the conditions you write take into account the state of the parent stage or job.
0 commit comments