Grab some binary logs (#22380)
* Grab binary logs for main Windows and Linux jobs - in the Windows case, do not do this in official builds (logging slows build down) nit: do not set variables with only two values three times * Do not sign twice in Windows Code-sign build step nit: correct wording in Signing.props * !fixup! Don't grab the large x86 binary log
This commit is contained in:
parent
059e2fdc49
commit
3dd75ea18d
|
|
@ -32,13 +32,50 @@ variables:
|
||||||
value: .NETCORE
|
value: .NETCORE
|
||||||
- name: _DotNetValidationArtifactsCategory
|
- name: _DotNetValidationArtifactsCategory
|
||||||
value: .NETCORE
|
value: .NETCORE
|
||||||
- ${{ if ne(variables['System.TeamProject'], 'internal') }}:
|
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
||||||
- name: _UseHelixOpenQueues
|
- name: _BuildArgs
|
||||||
value: 'true'
|
value: /p:TeamName=$(_TeamName)
|
||||||
|
/p:OfficialBuildId=$(Build.BuildNumber)
|
||||||
|
/p:SkipTestBuild=true
|
||||||
|
# DotNet-Blob-Feed provides: dotnetfeed-storage-access-key-1
|
||||||
|
# Publish-Build-Assets provides: MaestroAccessToken, BotAccount-dotnet-maestro-bot-PAT
|
||||||
|
- group: DotNet-Blob-Feed
|
||||||
|
- group: Publish-Build-Assets
|
||||||
|
# The following extra properties are not set when testing. Use with final build.[cmd,sh] of asset-producing jobs.
|
||||||
|
- name: _PublishArgs
|
||||||
|
value: /p:Publish=true
|
||||||
|
/p:GenerateChecksums=true
|
||||||
|
/p:DotNetPublishBlobFeedKey=$(dotnetfeed-storage-access-key-1)
|
||||||
|
/p:DotNetPublishBlobFeedUrl=https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json
|
||||||
|
/p:DotNetPublishToBlobFeed=$(_DotNetPublishToBlobFeed)
|
||||||
|
/p:DotNetPublishUsingPipelines=$(_PublishUsingPipelines)
|
||||||
|
/p:DotNetArtifactsCategory=$(_DotNetArtifactsCategory)
|
||||||
|
# Do not log most Windows steps in official builds; this is the slowest job. Site extensions step always logs.
|
||||||
|
- name: Windows64LogArgs
|
||||||
|
value: -ExcludeCIBinaryLog
|
||||||
|
- name: Windows86LogArgs
|
||||||
|
value: -ExcludeCIBinaryLog
|
||||||
|
- name: WindowsSignLogArgs
|
||||||
|
value: -ExcludeCIBinaryLog
|
||||||
|
- name: WindowsInstallersLogArgs
|
||||||
|
value: -ExcludeCIBinaryLog
|
||||||
|
- ${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}:
|
||||||
- name: _BuildArgs
|
- name: _BuildArgs
|
||||||
value: '/p:SkipTestBuild=true'
|
value: '/p:SkipTestBuild=true'
|
||||||
- name: _PublishArgs
|
- name: _PublishArgs
|
||||||
value: ''
|
value: ''
|
||||||
|
# Write binary logs for all main Windows build steps except the x86 one in public and PR builds.
|
||||||
|
- name: Windows64LogArgs
|
||||||
|
value: /bl:artifacts/log/Release/Build.x64.binlog
|
||||||
|
- name: Windows86LogArgs
|
||||||
|
value: -ExcludeCIBinaryLog
|
||||||
|
- name: WindowsSignLogArgs
|
||||||
|
value: /bl:artifacts/log/Release/Build.CodeSign.binlog
|
||||||
|
- name: WindowsInstallersLogArgs
|
||||||
|
value: /bl:artifacts/log/Release/Build.Installers.binlog
|
||||||
|
- ${{ if ne(variables['System.TeamProject'], 'internal') }}:
|
||||||
|
- name: _UseHelixOpenQueues
|
||||||
|
value: 'true'
|
||||||
- name: _SignType
|
- name: _SignType
|
||||||
value: ''
|
value: ''
|
||||||
- name: _InternalRuntimeDownloadArgs
|
- name: _InternalRuntimeDownloadArgs
|
||||||
|
|
@ -59,35 +96,11 @@ variables:
|
||||||
- name: _UseHelixOpenQueues
|
- name: _UseHelixOpenQueues
|
||||||
value: 'false'
|
value: 'false'
|
||||||
- ${{ if notin(variables['Build.Reason'], 'PullRequest') }}:
|
- ${{ if notin(variables['Build.Reason'], 'PullRequest') }}:
|
||||||
# DotNet-Blob-Feed provides: dotnetfeed-storage-access-key-1
|
|
||||||
# Publish-Build-Assets provides: MaestroAccessToken, BotAccount-dotnet-maestro-bot-PAT
|
|
||||||
- group: DotNet-Blob-Feed
|
|
||||||
- group: Publish-Build-Assets
|
|
||||||
|
|
||||||
- name: _BuildArgs
|
|
||||||
value: /p:TeamName=$(_TeamName)
|
|
||||||
/p:OfficialBuildId=$(Build.BuildNumber)
|
|
||||||
/p:SkipTestBuild=true
|
|
||||||
- name: _SignType
|
- name: _SignType
|
||||||
value: real
|
value: real
|
||||||
|
|
||||||
# The following extra properties are not set when testing. Use with final build.[cmd,sh] of asset-producing jobs.
|
|
||||||
- name: _PublishArgs
|
|
||||||
value: /p:Publish=true
|
|
||||||
/p:GenerateChecksums=true
|
|
||||||
/p:DotNetPublishBlobFeedKey=$(dotnetfeed-storage-access-key-1)
|
|
||||||
/p:DotNetPublishBlobFeedUrl=https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json
|
|
||||||
/p:DotNetPublishToBlobFeed=$(_DotNetPublishToBlobFeed)
|
|
||||||
/p:DotNetPublishUsingPipelines=$(_PublishUsingPipelines)
|
|
||||||
/p:DotNetArtifactsCategory=$(_DotNetArtifactsCategory)
|
|
||||||
|
|
||||||
- ${{ if in(variables['Build.Reason'], 'PullRequest') }}:
|
- ${{ if in(variables['Build.Reason'], 'PullRequest') }}:
|
||||||
- name: _BuildArgs
|
|
||||||
value: '/p:SkipTestBuild=true'
|
|
||||||
- name: _SignType
|
- name: _SignType
|
||||||
value: test
|
value: test
|
||||||
- name: _PublishArgs
|
|
||||||
value: ''
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- stage: build
|
- stage: build
|
||||||
|
|
@ -130,19 +143,18 @@ stages:
|
||||||
# The sign settings have been configured to
|
# The sign settings have been configured to
|
||||||
- script: ./build.cmd
|
- script: ./build.cmd
|
||||||
-ci
|
-ci
|
||||||
-nobl
|
|
||||||
-arch x64
|
-arch x64
|
||||||
-pack
|
-pack
|
||||||
-all
|
-all
|
||||||
$(_BuildArgs)
|
$(_BuildArgs)
|
||||||
$(_InternalRuntimeDownloadArgs)
|
$(_InternalRuntimeDownloadArgs)
|
||||||
|
$(Windows64LogArgs)
|
||||||
displayName: Build x64
|
displayName: Build x64
|
||||||
|
|
||||||
# Build the x86 shared framework
|
# Build the x86 shared framework
|
||||||
# This is going to actually build x86 native assets.
|
# This is going to actually build x86 native assets.
|
||||||
- script: ./build.cmd
|
- script: ./build.cmd
|
||||||
-ci
|
-ci
|
||||||
-nobl
|
|
||||||
-noBuildRepoTasks
|
-noBuildRepoTasks
|
||||||
-arch x86
|
-arch x86
|
||||||
-pack
|
-pack
|
||||||
|
|
@ -152,11 +164,11 @@ stages:
|
||||||
/p:OnlyPackPlatformSpecificPackages=true
|
/p:OnlyPackPlatformSpecificPackages=true
|
||||||
$(_BuildArgs)
|
$(_BuildArgs)
|
||||||
$(_InternalRuntimeDownloadArgs)
|
$(_InternalRuntimeDownloadArgs)
|
||||||
|
$(Windows86LogArgs)
|
||||||
displayName: Build x86
|
displayName: Build x86
|
||||||
|
|
||||||
- script: .\src\SiteExtensions\build.cmd
|
- script: .\src\SiteExtensions\build.cmd
|
||||||
-ci
|
-ci
|
||||||
-nobl
|
|
||||||
-noBuildRepoTasks
|
-noBuildRepoTasks
|
||||||
-pack
|
-pack
|
||||||
-noBuildDeps
|
-noBuildDeps
|
||||||
|
|
@ -171,19 +183,19 @@ stages:
|
||||||
# previous steps. Sign check is disabled because it is run in a separate step below, after installers are built.
|
# previous steps. Sign check is disabled because it is run in a separate step below, after installers are built.
|
||||||
- script: ./build.cmd
|
- script: ./build.cmd
|
||||||
-ci
|
-ci
|
||||||
-nobl
|
|
||||||
-noBuildRepoTasks
|
-noBuildRepoTasks
|
||||||
|
-noBuildNative
|
||||||
-noBuild
|
-noBuild
|
||||||
-noRestore
|
-noRestore
|
||||||
-sign
|
-sign
|
||||||
/p:DotNetSignType=$(_SignType)
|
/p:DotNetSignType=$(_SignType)
|
||||||
$(_BuildArgs)
|
$(_BuildArgs)
|
||||||
|
$(WindowsSignLogArgs)
|
||||||
displayName: Code sign packages
|
displayName: Code sign packages
|
||||||
|
|
||||||
# Windows installers bundle both x86 and x64 assets
|
# Windows installers bundle both x86 and x64 assets
|
||||||
- script: ./build.cmd
|
- script: ./build.cmd
|
||||||
-ci
|
-ci
|
||||||
-nobl
|
|
||||||
-noBuildRepoTasks
|
-noBuildRepoTasks
|
||||||
-sign
|
-sign
|
||||||
-buildInstallers
|
-buildInstallers
|
||||||
|
|
@ -194,6 +206,7 @@ stages:
|
||||||
$(_PublishArgs)
|
$(_PublishArgs)
|
||||||
$(_InternalRuntimeDownloadArgs)
|
$(_InternalRuntimeDownloadArgs)
|
||||||
/p:PublishInstallerBaseVersion=true
|
/p:PublishInstallerBaseVersion=true
|
||||||
|
$(WindowsInstallersLogArgs)
|
||||||
displayName: Build Installers
|
displayName: Build Installers
|
||||||
|
|
||||||
# A few files must also go to the VS package feed.
|
# A few files must also go to the VS package feed.
|
||||||
|
|
@ -313,7 +326,6 @@ stages:
|
||||||
steps:
|
steps:
|
||||||
- script: ./build.sh
|
- script: ./build.sh
|
||||||
--ci
|
--ci
|
||||||
--nobl
|
|
||||||
--arch x64
|
--arch x64
|
||||||
--pack
|
--pack
|
||||||
--all
|
--all
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
<FileExtensionSignInfo Include=".msi" CertificateName="None" />
|
<FileExtensionSignInfo Include=".msi" CertificateName="None" />
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Use the PublicKeyToken of .NET assemblies to determine with authenticode cert to use.
|
Use the PublicKeyToken of .NET assemblies to determine which authenticode cert to use.
|
||||||
'None' is required to ensure code signing does not attempt to re-sign them or submit
|
'None' is required to ensure code signing does not attempt to re-sign them or submit
|
||||||
to ESPR for strong-naming signing. We don't delay sign, so we only need to authenticode sign.
|
to ESPR for strong-naming signing. We don't delay sign, so we only need to authenticode sign.
|
||||||
See https://github.com/dotnet/arcade/issues/1911 for context.
|
See https://github.com/dotnet/arcade/issues/1911 for context.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue