Skip to content

Commit ec1f420

Browse files
committed
Move pipeline variables into template
We need to include top-level variable groups but can only do so if we use -name/value syntax. Hide this in a template so that it's less ugly.
1 parent 83c42ab commit ec1f420

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

build/vsts-ci.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,7 @@ resources:
1313
- container: UbuntuCrossArm64Container
1414
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-mlnet-cross-arm64
1515
variables:
16-
- group: SDL_Settings
17-
BuildConfig: Release
18-
OfficialBuildId: $(BUILD.BUILDNUMBER)
19-
DOTNET_CLI_TELEMETRY_OPTOUT: 1
20-
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
21-
DOTNET_MULTILEVEL_LOOKUP: 0
22-
Codeql.Enabled: true
23-
Codeql.SkipTaskAutoInjection: True #default to not inject CodeQL tasks, we'll enable it in a single job.
16+
- template: /eng/common-variables.yml
2417

2518
stages:
2619
- stage: build

eng/common-variables.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
variables:
2+
- group: SDL_Settings
3+
- name: BuildConfig
4+
value: Release
5+
- name: OfficialBuildId
6+
value: $(BUILD.BUILDNUMBER)
7+
- name: DOTNET_CLI_TELEMETRY_OPTOUT
8+
value: 1
9+
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
10+
value: 1
11+
- name: DOTNET_MULTILEVEL_LOOKUP
12+
value: 0
13+
- name: Codeql.Enabled
14+
value: true
15+
- name: Codeql.SkipTaskAutoInjection
16+
value: True #default to not inject CodeQL tasks, we'll enable it in a single job.
17+

0 commit comments

Comments
 (0)