Skip to content

Commit c8a4bef

Browse files
liushilongbuaaskbarista
authored andcommitted
[ci] Fix test stage dependency issue. (sonic-net#11386) (sonic-net#11390)
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 876c7c9 commit c8a4bef

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
@@ -77,7 +77,7 @@ stages:
7777

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

0 commit comments

Comments
 (0)