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 :
@@ -44,17 +46,30 @@ jobs:
4446 targetPath : ' $(Build.SourcesDirectory)/artifacts/packages/Release/NonShipping/'
4547 artifactName : ' dnup-library-packages'
4648 publishLocation : Container
49+ - output : pipelineArtifact
50+ displayName : ' 📊 Publish dnup library build binlogs'
51+ condition : always()
52+ targetPath : ' $(Build.SourcesDirectory)/artifacts/binlogs/'
53+ artifactName : ' dnup-library-binlogs'
54+ publishLocation : Container
4755 steps :
4856 - ${{ if eq(parameters.pool.os, 'windows') }} :
4957 - powershell : |
50- & .\restore.cmd
58+ & .\restore.cmd $(_officialBuildProperties)
5159 displayName: 🍱 Bootstrap toolset (Windows)
5260 - powershell : |
53- & .\.dotnet\dotnet build test\dnup.Tests\dnup.Tests.csproj -c Release
61+ & .\.dotnet\dotnet build test\dnup.Tests\dnup.Tests.csproj -c Release -bl:$(Build.SourcesDirectory)/artifacts/binlogs/dnup-library-build.binlog $(_officialBuildProperties)
5462 displayName: 💻 Build Windows
5563 - powershell : |
56- & .\.dotnet\dotnet pack .\src\Installer\Microsoft.Dotnet.Installation\Microsoft.Dotnet.Installation.csproj
64+ & .\.dotnet\dotnet pack .\src\Installer\Microsoft.Dotnet.Installation\Microsoft.Dotnet.Installation.csproj -bl:$(Build.SourcesDirectory)/artifacts/binlogs/dnup-library-package.binlog $(_officialBuildProperties)
5765 displayName: 📦 Package dnup library
5866 - powershell : |
59- & .\.dotnet\dotnet build .\src\Installer\Microsoft.Dotnet.Installation\Microsoft.Dotnet.Installation. sign.proj /t:Sign
67+ & .\.dotnet\dotnet build .\src\Installer\Installer. sign.proj /t:Sign -bl:$(Build.SourcesDirectory)/artifacts/binlogs/dnup-library-sign.binlog $(_officialBuildProperties)
6068 displayName: 🖋️ Sign dnup library packages with arcade signtool
69+ - task : 1ES.PublishNuget@1
70+ displayName : 🟣 Publish packages to AzDO
71+ inputs :
72+ useDotNetTask : true
73+ packagesToPush : ' $(Build.SourcesDirectory)/artifacts/packages/Release/**/*.nupkg;!$(Build.SourcesDirectory)/artifacts/packages/Release/**/*.symbols.nupkg'
74+ packageParentPath : $(Build.SourcesDirectory)/artifacts/packages/Release
75+ publishVstsFeed : public/dotnet-tools
0 commit comments