Skip to content

Commit dc1deb5

Browse files
committed
Flow build ID through to build
1 parent 3dc1d60 commit dc1deb5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

eng/pipelines/templates/jobs/dnup/dnup-library-package.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131
enableSbom: ${{ parameters.enableSbom }}
3232
variables:
3333
- ${{ insert }}: ${{ parameters.variables }}
34+
- name: _officialBuildProperties
35+
value: /p:OfficialBuilder=Microsoft /p:OfficialBuildId=$(Build.BuildNumber)
3436
dependsOn: ${{ parameters.dependsOn }}
3537
preSteps: ${{ parameters.preSteps }}
3638
templateContext:
@@ -53,14 +55,14 @@ jobs:
5355
steps:
5456
- ${{ if eq(parameters.pool.os, 'windows') }}:
5557
- powershell: |
56-
& .\restore.cmd
58+
& .\restore.cmd $(_officialBuildProperties)
5759
displayName: 🍱 Bootstrap toolset (Windows)
5860
- powershell: |
59-
& .\.dotnet\dotnet build test\dnup.Tests\dnup.Tests.csproj -c Release -bl:$(Build.SourcesDirectory)/artifacts/binlogs/dnup-library-build.binlog
61+
& .\.dotnet\dotnet build test\dnup.Tests\dnup.Tests.csproj -c Release -bl:$(Build.SourcesDirectory)/artifacts/binlogs/dnup-library-build.binlog $(_officialBuildProperties)
6062
displayName: 💻 Build Windows
6163
- powershell: |
62-
& .\.dotnet\dotnet pack .\src\Installer\Microsoft.Dotnet.Installation\Microsoft.Dotnet.Installation.csproj -bl:$(Build.SourcesDirectory)/artifacts/binlogs/dnup-library-package.binlog
64+
& .\.dotnet\dotnet pack .\src\Installer\Microsoft.Dotnet.Installation\Microsoft.Dotnet.Installation.csproj -bl:$(Build.SourcesDirectory)/artifacts/binlogs/dnup-library-package.binlog $(_officialBuildProperties)
6365
displayName: 📦 Package dnup library
6466
- powershell: |
65-
& .\.dotnet\dotnet build .\src\Installer\Installer.sign.proj /t:Sign -bl:$(Build.SourcesDirectory)/artifacts/binlogs/dnup-library-sign.binlog
67+
& .\.dotnet\dotnet build .\src\Installer\Installer.sign.proj /t:Sign -bl:$(Build.SourcesDirectory)/artifacts/binlogs/dnup-library-sign.binlog $(_officialBuildProperties)
6668
displayName: 🖋️ Sign dnup library packages with arcade signtool

0 commit comments

Comments
 (0)