Skip to content

Commit

Permalink
Move pipeline variables into template
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ericstj committed Oct 26, 2022
1 parent 83c42ab commit ec1f420
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
9 changes: 1 addition & 8 deletions build/vsts-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,7 @@ resources:
- container: UbuntuCrossArm64Container
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-mlnet-cross-arm64
variables:
- group: SDL_Settings
BuildConfig: Release
OfficialBuildId: $(BUILD.BUILDNUMBER)
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_MULTILEVEL_LOOKUP: 0
Codeql.Enabled: true
Codeql.SkipTaskAutoInjection: True #default to not inject CodeQL tasks, we'll enable it in a single job.
- template: /eng/common-variables.yml

stages:
- stage: build
Expand Down
17 changes: 17 additions & 0 deletions eng/common-variables.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
variables:
- group: SDL_Settings
- name: BuildConfig
value: Release
- name: OfficialBuildId
value: $(BUILD.BUILDNUMBER)
- name: DOTNET_CLI_TELEMETRY_OPTOUT
value: 1
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
value: 1
- name: DOTNET_MULTILEVEL_LOOKUP
value: 0
- name: Codeql.Enabled
value: true
- name: Codeql.SkipTaskAutoInjection
value: True #default to not inject CodeQL tasks, we'll enable it in a single job.

0 comments on commit ec1f420

Please sign in to comment.