Skip to content

Commit 5b7ab29

Browse files
authored
Update conditions.md
The example yaml under job example 2 which is supposed to show the dependency of a following stage on a primary stage is identical to example 1 where the stages are independent. The description of example 2 says it has the condition : succeeded() but this is not present in the yaml. This edit includes that condition in example 2's yaml.
1 parent e7c21a1 commit 5b7ab29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/pipelines/process/conditions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ jobs:
184184
dependsOn: A
185185
steps:
186186
- script: echo step 2.1
187-
condition: eq(variables['Build.SourceBranch'], 'refs/heads/main')
187+
condition: eq(variables['Build.SourceBranch'], 'refs/heads/main', succeeded())
188188
189189
```
190190

0 commit comments

Comments
 (0)