From 9554eb090c2a5226bcaffdb59262f014206b6205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amaury=20Lev=C3=A9?= Date: Tue, 18 Apr 2023 14:23:10 +0200 Subject: [PATCH] Allows to produce RTM version --- azure-pipelines.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 619bbf75ae..7d69ad880a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -35,7 +35,7 @@ pr: parameters: - name: isRTM - displayName: "Release a RTM version?" + displayName: "Produce RTM version?" type: boolean default: False @@ -89,6 +89,10 @@ variables: /p:OfficialBuildId=$(BUILD.BUILDNUMBER) /p:VisualStudioDropName=$(VisualStudioDropName) + - ${{ if eq(parameters.isRTM, True) }}: + - name: _InternalBuildArgs + value: $(_InternalBuildArgs) /p:DotNetFinalVersionKind=release + stages: - stage: build @@ -156,7 +160,7 @@ stages: PathtoPublish: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)' ArtifactName: TestResults condition: failed() - + # Public pipeline does not upload packages into artifacts, but we need them for tests on Linux and MacOS. - ${{ if eq(variables._RunAsPublic, True) }}: - task: PublishBuildArtifacts@1 @@ -176,7 +180,7 @@ stages: inputs: PathtoPublish: '$(Build.SourcesDirectory)/artifacts/VSSetup/$(_BuildConfig)' ArtifactName: VSSetupArtifacts - + - job: OtherOSes dependsOn: Windows workspace: @@ -200,7 +204,7 @@ stages: - checkout: self fetchDepth: 1 clean: true - + # Build but don't pack, packing does not work on non-windows and we want to test what we built on Windows # anyway. Because that is what we will publish. - script: ./build.sh @@ -208,14 +212,14 @@ stages: --ci name: Build displayName: Build - + # Download the built packages into local package source, as if we built them on this machine. - task: DownloadPipelineArtifact@2 displayName: Download Package Artifacts inputs: artifactName: PackageArtifacts targetPath: '$(Build.SourcesDirectory)/artifacts/packages/$(_BuildConfig)/Shipping' - + - script: ./test.sh --configuration $(_BuildConfig) --ci @@ -223,7 +227,7 @@ stages: --performanceTest name: Test displayName: Test - + # This step is only helpful for diagnosing some issues with vstest/test host that would not appear # through the console or trx - task: PublishBuildArtifacts@1 @@ -254,7 +258,7 @@ stages: inputs: artifactName: PackageArtifacts targetPath: '$(Build.SourcesDirectory)/artifacts/packages/$(_BuildConfig)/Shipping' - + - task: DownloadPipelineArtifact@2 displayName: Download VSSetup Artifacts inputs: