Skip to content

Commit aa62848

Browse files
committed
Do not publish to BAR when RTM version is built
1 parent d824a2f commit aa62848

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

azure-pipelines-official.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,17 @@ variables:
8080
# even when we don't use matrix.
8181
- name: _BuildConfig
8282
value: Release
83+
- name: _PublishUsingPipelines
84+
value: true
8385

8486
- ${{ if eq(parameters.isRTM, True) }}:
8587
- name: _ReleaseVersionKind
8688
value: release
89+
# do not publish final version to internal feeds, because there we want to have versions that
90+
# end with -release or -preview, but not versions without any suffix, because we cannot release
91+
# multiple of those versions.
92+
- name: _PublishUsingPipelines
93+
value: false
8794

8895
# Group gives access to $microsoft-symbol-server-pat and $symweb-symbol-server-pat
8996
- group: DotNet-Symbol-Server-Pats
@@ -105,7 +112,7 @@ variables:
105112
value: /p:DotNetSignType=$(_SignType)
106113
/p:TeamName=$(_TeamName)
107114
/p:DotNetFinalVersionKind=$(_ReleaseVersionKind)
108-
/p:DotNetPublishUsingPipelines=true
115+
/p:DotNetPublishUsingPipelines=$(_PublishUsingPipelines)
109116
/p:DotNetSymbolServerTokenMsdl=$(microsoft-symbol-server-pat)
110117
/p:DotNetSymbolServerTokenSymWeb=$(symweb-symbol-server-pat)
111118
/p:OfficialBuildId=$(BUILD.BUILDNUMBER)

0 commit comments

Comments
 (0)