Skip to content

Commit 544cdd7

Browse files
authored
build: pass branding into the nuget variable template (#16122)
This fixes a cosmetic issue with the version number in the unpackaged builds and NuGet packages. They were showing up as `-preview`, even when they were stable, because the variable template didn't know about the branding.
1 parent 0144cdd commit 544cdd7

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

build/pipelines/ob-nightly.yml

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ name: $(BuildDefinitionName)_$(date:yyMM).$(date:dd)$(rev:rrr)
1818

1919
variables:
2020
- template: templates-v2/variables-nuget-package-version.yml
21+
parameters:
22+
branding: Canary
2123
- template: templates-v2/variables-onebranch-config.yml
2224

2325
extends:

build/pipelines/ob-release.yml

+2
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ name: $(BuildDefinitionName)_$(date:yyMM).$(date:dd)$(rev:rrr)
6262

6363
variables:
6464
- template: templates-v2/variables-nuget-package-version.yml
65+
parameters:
66+
branding: ${{ parameters.branding }}
6567
- template: templates-v2/variables-onebranch-config.yml
6668

6769
extends:

build/pipelines/templates-v2/pipeline-full-release-build.yml

+2
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ parameters:
6262

6363
variables:
6464
- template: variables-nuget-package-version.yml
65+
parameters:
66+
branding: ${{ parameters.branding }}
6567

6668
resources:
6769
repositories:

build/pipelines/templates-v2/variables-nuget-package-version.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
parameters:
2+
- name: branding
3+
type: string
4+
15
variables:
26
# If we are building a branch called "release-*", change the NuGet suffix
37
# to "preview". If we don't do that, XES will set the suffix to "release1"

0 commit comments

Comments
 (0)