File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
eng/pipelines/templates/jobs Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -142,9 +142,13 @@ jobs:
142
142
143
143
${{ if ne(parameters.reuseBuildArtifactsFrom, '') }} :
144
144
${{ if eq(parameters.buildPass, '') }} :
145
- # Always attempt to run the bootstrap leg (e.g. even when stage 1 tests fail) in order to get a complete accessment of the build status.
145
+ # For PR builds, skip the stage 2 build if the stage 1 build fails.
146
+ # Otherwise, run the stage 2 build even if the stage 1 build fails so that we can get a complete assessment of the build status.
146
147
# The build shortcuts when stage 1 build fails and doesn't produce the SDK.
147
- condition : succeededOrFailed()
148
+ ${{ if eq(variables['Build.Reason'], 'PullRequest') }} :
149
+ condition : succeeded()
150
+ ${{ else }} :
151
+ condition : succeededOrFailed()
148
152
${{ else }} :
149
153
condition : succeeded()
150
154
dependsOn : ${{ parameters.reuseBuildArtifactsFrom }}
You can’t perform that action at this time.
0 commit comments