Skip to content

Commit cb3be42

Browse files
committed
Update offical pipeline
1 parent 6096e40 commit cb3be42

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

eng/pipelines/official.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ parameters:
111111
- name: VisualStudioMinimumVersion
112112
displayName: Visual Studio Minimum Version
113113
type: string
114-
default: '18'
114+
default: '17'
115115

116116
###################################################################################################################################################################
117117
# STAGES

eng/pipelines/templates/build-official-release.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
displayName: Build Official Release
2020
# We make this timeout more than double the normal amount of build time as signing has a highly variable amount of time to complete.
2121
timeoutInMinutes: 90 # API Scan can take a long time and fail the build
22+
variables:
23+
VisualStudioMinimumVersion: ${{ parameters.VisualStudioMinimumVersion }}
2224
templateContext:
2325
mb:
2426
signing:
@@ -90,7 +92,6 @@ jobs:
9092
allowPackageConflicts: true
9193
nuGetFeedType: external
9294

93-
9495
steps:
9596

9697
###################################################################################################################################################################
@@ -139,6 +140,13 @@ jobs:
139140
inputs:
140141
forceReinstallCredentialProvider: true
141142

143+
# Sets the VisualStudioMinimumVersion variable for the job. This variable is also used by the APIScan job.
144+
# https://docs.microsoft.com/azure/devops/pipelines/process/set-variables-scripts?view=azure-devops&tabs=powershell#set-variable-properties
145+
- powershell: Write-Host "##vso[task.setvariable variable=VisualStudioMinimumVersion;isoutput=true]$(VisualStudioMinimumVersion)"
146+
displayName: Set VisualStudioMinimumVersion Variable
147+
# Name is required to reference the variables created within this build step in other stages.
148+
name: SetVisualStudioMinimumVersionVariable
149+
142150
# Runs the full build of the projects in the repository. See Build.proj for details.
143151
- script: $(Build.SourcesDirectory)/build.cmd /v:normal /p:Configuration=$(BuildConfiguration) /p:CIBuild=true
144152
displayName: Build All Projects
@@ -172,13 +180,6 @@ jobs:
172180
- task: MicroBuildSwixPlugin@4
173181
displayName: Install Swix Plugin
174182

175-
# Sets the VisualStudioMinimumVersion variable for the job. This variable is also used by the APIScan job.
176-
# https://docs.microsoft.com/azure/devops/pipelines/process/set-variables-scripts?view=azure-devops&tabs=powershell#set-variable-properties
177-
- powershell: Write-Host "##vso[task.setvariable variable=VisualStudioMinimumVersion;isoutput=true]$(. '$(Build.SourcesDirectory)/eng/scripts/GetVisualStudioMinimumVersion.ps1')"
178-
displayName: Set VisualStudioMinimumVersion Variable
179-
# Name is required to reference the variables created within this build step in other stages.
180-
name: SetVisualStudioMinimumVersionVariable
181-
182183
# Creates the VS bootstrapper information based on the build's .vsman file.
183184
# This bootstrapper information is only used for OptProf currently.
184185
# Since this data will be output with rest of our insertion files, we produce this data now and publish it in the build artifacts.

0 commit comments

Comments
 (0)