Skip to content

Commit 03fb785

Browse files
authored
Add scout as a param for scope in source-build-stages.yml (#1638)
1 parent bb441a9 commit 03fb785

File tree

4 files changed

+21
-16
lines changed

4 files changed

+21
-16
lines changed

eng/pipelines/scout-build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# Only run 3 times a week on schedule to save resources
55
trigger: none
66

7+
pr: none
8+
79
schedules:
810
- cron: "0 9 * * 0,2,4" # run 3 days a week at 9:00 (UTC)
911
branches:

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ parameters:
1010
- name: scope
1111
type: string
1212
values:
13+
# run only windows jobs
14+
- scout
1315
# run several legs e.g. stage1/stage2 for basic testing
1416
- lite
1517
# run everything

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

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -119,16 +119,17 @@ stages:
119119
parameters:
120120
desiredSigning: ${{ parameters.desiredSigning }}
121121

122-
- template: source-build-stages.yml
123-
parameters:
124-
pool_Linux: ${{ parameters.pool_Linux }}
125-
pool_LinuxArm64: ${{ parameters.pool_LinuxArm64 }}
126-
scope: ${{ parameters.scope }}
127-
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
128-
desiredFinalVersionKind: ${{ parameters.desiredFinalVersionKind }}
129-
verifications: ${{ parameters.verifications }}
130-
${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
131-
# For PR builds, we don't rely on Microsoft build assets for testing because not all of the required assets
132-
# are available from the subset of jobs that get build in PRs compared to the full build. Instead, we run
133-
# the tests in the same job as the build and filter out some of the tests that can't be executed in this state.
134-
useMicrosoftBuildAssetsForTests: false
122+
- ${{ if notin(parameters.scope, 'scout') }}:
123+
- template: source-build-stages.yml
124+
parameters:
125+
pool_Linux: ${{ parameters.pool_Linux }}
126+
pool_LinuxArm64: ${{ parameters.pool_LinuxArm64 }}
127+
scope: ${{ parameters.scope }}
128+
isBuiltFromVmr: ${{ parameters.isBuiltFromVmr }}
129+
desiredFinalVersionKind: ${{ parameters.desiredFinalVersionKind }}
130+
verifications: ${{ parameters.verifications }}
131+
${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
132+
# For PR builds, we don't rely on Microsoft build assets for testing because not all of the required assets
133+
# are available from the subset of jobs that get build in PRs compared to the full build. Instead, we run
134+
# the tests in the same job as the build and filter out some of the tests that can't be executed in this state.
135+
useMicrosoftBuildAssetsForTests: false

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ parameters:
8080
stages:
8181

8282
#### VERTICAL BUILD (Validation) ####
83-
- ${{ if or(and(eq(variables['Build.Reason'], 'PullRequest'), containsValue(parameters.verifications, 'unified-build-linux-buildtests')), and(ne(variables['Build.Reason'], 'PullRequest'), ne(variables['System.TeamProject'], 'internal'), containsValue(parameters.verifications, 'unified-build-windows-buildtests'))) }}:
83+
- ${{ if and(notin(parameters.scope, 'scout'), or(and(eq(variables['Build.Reason'], 'PullRequest'), containsValue(parameters.verifications, 'unified-build-linux-buildtests')), and(ne(variables['Build.Reason'], 'PullRequest'), ne(variables['System.TeamProject'], 'internal'), containsValue(parameters.verifications, 'unified-build-windows-buildtests')))) }}:
8484
- stage: VMR_Vertical_Build_Validation
8585
displayName: VMR Vertical Build Validation
8686
templateContext:
@@ -118,7 +118,7 @@ stages:
118118
extraProperties: /p:DotNetBuildTests=true
119119

120120
#### VERTICAL BUILD (Official) ####
121-
- ${{ if or(in(parameters.scope, 'full') , contains(join(';', parameters.verifications), 'unified-build-')) }}:
121+
- ${{ if and(notin(parameters.scope, 'scout'), or(in(parameters.scope, 'full') , contains(join(';', parameters.verifications), 'unified-build-'))) }}:
122122
- stage: VMR_Vertical_Build
123123
displayName: VMR Vertical Build
124124
dependsOn: []
@@ -682,7 +682,7 @@ stages:
682682

683683
#### VERTICAL BUILD (Scouting) ####
684684
- ${{ if in(parameters.scope, 'scout') }}:
685-
- stage: VMR_Vertical_Build
685+
- stage: VMR_Vertical_Build_Scout
686686
displayName: VMR Vertical Build
687687
dependsOn: []
688688
variables:

0 commit comments

Comments
 (0)