|
19 | 19 | displayName: Build Official Release
|
20 | 20 | # We make this timeout more than double the normal amount of build time as signing has a highly variable amount of time to complete.
|
21 | 21 | timeoutInMinutes: 90 # API Scan can take a long time and fail the build
|
| 22 | + variables: |
| 23 | + VisualStudioMinimumVersion: ${{ parameters.VisualStudioMinimumVersion }} |
22 | 24 | templateContext:
|
23 | 25 | mb:
|
24 | 26 | signing:
|
|
90 | 92 | allowPackageConflicts: true
|
91 | 93 | nuGetFeedType: external
|
92 | 94 |
|
93 |
| - |
94 | 95 | steps:
|
95 | 96 |
|
96 | 97 | ###################################################################################################################################################################
|
@@ -139,6 +140,13 @@ jobs:
|
139 | 140 | inputs:
|
140 | 141 | forceReinstallCredentialProvider: true
|
141 | 142 |
|
| 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 | + |
142 | 150 | # Runs the full build of the projects in the repository. See Build.proj for details.
|
143 | 151 | - script: $(Build.SourcesDirectory)/build.cmd /v:normal /p:Configuration=$(BuildConfiguration) /p:CIBuild=true
|
144 | 152 | displayName: Build All Projects
|
@@ -172,13 +180,6 @@ jobs:
|
172 | 180 | - task: MicroBuildSwixPlugin@4
|
173 | 181 | displayName: Install Swix Plugin
|
174 | 182 |
|
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 |
| - |
182 | 183 | # Creates the VS bootstrapper information based on the build's .vsman file.
|
183 | 184 | # This bootstrapper information is only used for OptProf currently.
|
184 | 185 | # 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