Skip to content

Commit 6688bb2

Browse files
authored
Allows to produce RTM version (#4400)
1 parent 1541fc3 commit 6688bb2

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

azure-pipelines.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pr:
3535

3636
parameters:
3737
- name: isRTM
38-
displayName: "Release a RTM version?"
38+
displayName: "Produce RTM version?"
3939
type: boolean
4040
default: False
4141

@@ -89,6 +89,10 @@ variables:
8989
/p:OfficialBuildId=$(BUILD.BUILDNUMBER)
9090
/p:VisualStudioDropName=$(VisualStudioDropName)
9191

92+
- ${{ if eq(parameters.isRTM, True) }}:
93+
- name: _InternalBuildArgs
94+
value: $(_InternalBuildArgs) /p:DotNetFinalVersionKind=release
95+
9296
stages:
9397

9498
- stage: build
@@ -156,7 +160,7 @@ stages:
156160
PathtoPublish: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)'
157161
ArtifactName: TestResults
158162
condition: failed()
159-
163+
160164
# Public pipeline does not upload packages into artifacts, but we need them for tests on Linux and MacOS.
161165
- ${{ if eq(variables._RunAsPublic, True) }}:
162166
- task: PublishBuildArtifacts@1
@@ -176,7 +180,7 @@ stages:
176180
inputs:
177181
PathtoPublish: '$(Build.SourcesDirectory)/artifacts/VSSetup/$(_BuildConfig)'
178182
ArtifactName: VSSetupArtifacts
179-
183+
180184
- job: OtherOSes
181185
dependsOn: Windows
182186
workspace:
@@ -200,30 +204,30 @@ stages:
200204
- checkout: self
201205
fetchDepth: 1
202206
clean: true
203-
207+
204208
# Build but don't pack, packing does not work on non-windows and we want to test what we built on Windows
205209
# anyway. Because that is what we will publish.
206210
- script: ./build.sh
207211
--configuration $(_BuildConfig)
208212
--ci
209213
name: Build
210214
displayName: Build
211-
215+
212216
# Download the built packages into local package source, as if we built them on this machine.
213217
- task: DownloadPipelineArtifact@2
214218
displayName: Download Package Artifacts
215219
inputs:
216220
artifactName: PackageArtifacts
217221
targetPath: '$(Build.SourcesDirectory)/artifacts/packages/$(_BuildConfig)/Shipping'
218-
222+
219223
- script: ./test.sh
220224
--configuration $(_BuildConfig)
221225
--ci
222226
--integrationTest
223227
--performanceTest
224228
name: Test
225229
displayName: Test
226-
230+
227231
# This step is only helpful for diagnosing some issues with vstest/test host that would not appear
228232
# through the console or trx
229233
- task: PublishBuildArtifacts@1
@@ -254,7 +258,7 @@ stages:
254258
inputs:
255259
artifactName: PackageArtifacts
256260
targetPath: '$(Build.SourcesDirectory)/artifacts/packages/$(_BuildConfig)/Shipping'
257-
261+
258262
- task: DownloadPipelineArtifact@2
259263
displayName: Download VSSetup Artifacts
260264
inputs:

0 commit comments

Comments
 (0)