Skip to content

Commit 6bbbb01

Browse files
authored
VMR: move DevVersions jobs to a separate stage (#45226)
Don't run the validation jobs during the official build. Fixes dotnet/source-build#4769
1 parent 96c06f8 commit 6bbbb01

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

eng/pipelines/templates/stages/vmr-build.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,10 @@ stages:
347347
# reuseBuildArtifactsFrom:
348348
# - ${{ format('{0}_Mono_Offline_MsftSdk_x64', variables.centOSStreamName) }}
349349

350-
#### VERTICAL BUILD ####
351-
- ${{ if not(parameters.isSourceOnlyBuild) }}:
352-
- stage: VMR_Vertical_Build
353-
displayName: VMR Vertical Build
350+
#### VERTICAL BUILD (Validation) ####
351+
- ${{ if and(not(parameters.isSourceOnlyBuild), or(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['System.TeamProject'], 'internal'))) }}:
352+
- stage: VMR_Vertical_Build_Validation
353+
displayName: VMR Vertical Build Validation
354354
dependsOn: []
355355
variables:
356356
- template: ../variables/vmr-build.yml
@@ -368,7 +368,7 @@ stages:
368368
container: ${{ variables.ubuntuContainer }}
369369
targetOS: linux
370370
targetArchitecture: x64
371-
useDevVersions: true # Use dev versions for CI validation of the experience. If we decide to ship assets from this leg, then we should remove this option.
371+
useDevVersions: true # Use dev versions for CI validation of the experience.
372372
runTests: false # Temporarily do not run tests. The nuget comparison fails for some non-obvious reason and needs further investigation. Mostly, I'm not sure why it ever passed. https://github.com/dotnet/sdk/issues/42920
373373

374374
- template: ../jobs/vmr-build.yml
@@ -391,9 +391,20 @@ stages:
391391
pool: ${{ parameters.pool_Windows }}
392392
targetOS: windows
393393
targetArchitecture: x64
394-
useDevVersions: true # Use dev versions for CI validation of the experience. If we decide to ship assets from this leg, then we should remove this option.
394+
useDevVersions: true # Use dev versions for CI validation of the experience.
395395
runTests: false # Temporarily do not run tests. The nuget comparison fails for some non-obvious reason and needs further investigation. Mostly, I'm not sure why it ever passed. https://github.com/dotnet/sdk/issues/42920
396396

397+
#### VERTICAL BUILD (Official) ####
398+
- ${{ if not(parameters.isSourceOnlyBuild) }}:
399+
- stage: VMR_Vertical_Build
400+
displayName: VMR Vertical Build
401+
dependsOn: []
402+
variables:
403+
- template: ../variables/vmr-build.yml
404+
parameters:
405+
vmrBranch: ${{ parameters.vmrBranch }}
406+
jobs:
407+
397408
- template: ../jobs/vmr-build.yml
398409
parameters:
399410
buildName: Windows

0 commit comments

Comments
 (0)