Skip to content

Commit c6f9946

Browse files
authored
Fix job conditions to allow cancelling (Azure#16126)
The conditions at the job level are inherited at each step level if the step doesn't override the condition so we need to make sure we add the "succeededOrFailed" function so that steps can be cancelled.
1 parent aea4dc3 commit c6f9946

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/pipelines/templates/jobs/archetype-sdk-tests-jobs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ parameters:
3636
jobs:
3737
- ${{ each platform in parameters.Platforms }}:
3838
- job:
39-
condition: eq(eq(variables['Record'], 'true'), eq('${{ platform.TestMode }}', 'Record'))
39+
condition: and(succeededOrFailed(), eq(eq(variables['Record'], 'true'), eq('${{ platform.TestMode }}', 'Record')))
4040
displayName: ${{ platform.DisplayName }}
4141
variables:
4242
- template: ../variables/globals.yml

0 commit comments

Comments
 (0)