Skip to content

Commit ed728ab

Browse files
[ci] Fix test stage dependency issue. (#11386) (#11391)
Why I did it When any of the test job failed in the test stage, the rerun will not work, the test stage will be skipped automaticall, so we do not have chance to rerun the test stage again, and the checks of the test will be always in failed status, block the PR to merge forever. It should be caused by the condition in the Test stage, we should specify the status of the BuildVS stage. How I did it Fix stage dependency logic.
1 parent bc935d4 commit ed728ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

azure-pipelines.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ stages:
7676

7777
- stage: Test
7878
dependsOn: BuildVS
79-
condition: and(ne(stageDependencies.BuildVS.outputs['vs.SetVar.SKIP_VSTEST'], 'YES'), succeeded())
79+
condition: and(ne(stageDependencies.BuildVS.outputs['vs.SetVar.SKIP_VSTEST'], 'YES'), in(dependencies.BuildVS.result, 'Succeeded', 'SucceededWithIssues'))
8080
variables:
8181
- name: inventory
8282
value: veos_vtb

0 commit comments

Comments
 (0)