Skip to content

Commit 92c9bac

Browse files
authored
Only Depend on Live Test Stages for Manual Builds (Azure#33274)
1 parent 6ddb120 commit 92c9bac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

eng/pipelines/templates/stages/archetype-sdk-client.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ stages:
116116
parameters:
117117
DependsOn:
118118
- Build
119-
# If the build depends on live tests don't let live tests results prevent from
120-
# publishing the nightly dev builds.
121-
- ${{ if and(eq(parameters.ReleaseDependsOnLiveTests, 'true'), ne(variables['Build.Reason'],'Schedule')) }}:
119+
# Only depend on live test stages if the build depends on live tests and the build reason is manual.
120+
# This prevents check-in builds and scheduled builds from having a requirement on live test stages.
121+
- ${{ if and(eq(parameters.ReleaseDependsOnLiveTests, 'true'), eq(variables['Build.Reason'],'Manual')) }}:
122122
- ${{ each liveTestStage in parameters.LiveTestStages }}:
123123
- ${{ liveTestStage.stage }}
124124
ServiceDirectory: ${{ parameters.ServiceDirectory }}

0 commit comments

Comments
 (0)