Update to use WindowsAppSDK-PublishSymbol-Steps.yml from WindowsAppSDK Config (#4624)
This commit is contained in:
Родитель
4773024196
Коммит
ec1075cb32
|
@ -233,11 +233,10 @@ steps:
|
|||
failOnAlert: true
|
||||
|
||||
- ${{ if eq(parameters.IsOneBranch, 'true') }}:
|
||||
- template: ${{variables['System.DefaultWorkingDirectory']}}\build\AzurePipelinesTemplates\WindowsAppSDK-PublishSymbol-Steps.yml
|
||||
- template: ${{variables['System.DefaultWorkingDirectory']}}\AzurePipelinesTemplates\WindowsAppSDK-PublishSymbol-Steps.yml@WindowsAppSDKConfig
|
||||
parameters:
|
||||
SearchPattern: '$(foundationRepoPath)BuildOutput\$(buildConfiguration)\$(buildPlatform)\WindowsAppRuntimeInstall\*.pdb'
|
||||
IsOfficial: ${{ parameters.IsOfficial }}
|
||||
PublishPublicSymbolsPowershellPath: '$(Build.SourcesDirectory)\$(foundationRepoPath)eng\common\Scripts\PublishPublicSymbols.ps1'
|
||||
|
||||
- ${{ if eq(parameters.SignOutput, 'true') }}:
|
||||
- template: ${{variables['System.DefaultWorkingDirectory']}}\AzurePipelinesTemplates/WindowsAppSDK-EsrpCodeSigning-Steps.yml@WindowsAppSDKConfig
|
||||
|
|
|
@ -195,11 +195,10 @@ steps:
|
|||
**/WindowsAppSDK.*.Extension.*.dll
|
||||
|
||||
- ${{ if eq(parameters.IsOneBranch, 'true') }}:
|
||||
- template: ${{variables['System.DefaultWorkingDirectory']}}\build\AzurePipelinesTemplates\WindowsAppSDK-PublishSymbol-Steps.yml
|
||||
- template: ${{variables['System.DefaultWorkingDirectory']}}\AzurePipelinesTemplates\WindowsAppSDK-PublishSymbol-Steps.yml@WindowsAppSDKConfig
|
||||
parameters:
|
||||
SearchPattern: '$(FoundationRepoPath)dev\VSIX\BuildOutput\obj\AnyCPU$(buildConfiguration)\**\WindowsAppSDK*.pdb'
|
||||
IsOfficial: ${{ parameters.IsOfficial }}
|
||||
PublishPublicSymbolsPowershellPath: '$(Build.SourcesDirectory)\$(foundationRepoPath)eng\common\Scripts\PublishPublicSymbols.ps1'
|
||||
|
||||
- task: CopyFiles@2
|
||||
displayName: 'Stage VSIX component JSONs'
|
||||
|
|
|
@ -128,11 +128,10 @@ stages:
|
|||
**\*.pdb
|
||||
targetFolder: $(Build.ArtifactStagingDirectory)\symbols
|
||||
|
||||
- template: ${{variables['System.DefaultWorkingDirectory']}}\build\AzurePipelinesTemplates\WindowsAppSDK-PublishSymbol-Steps.yml
|
||||
- template: ${{variables['System.DefaultWorkingDirectory']}}\AzurePipelinesTemplates\WindowsAppSDK-PublishSymbol-Steps.yml@WindowsAppSDKConfig
|
||||
parameters:
|
||||
SearchPattern: '$(Build.ArtifactStagingDirectory)\symbols\**\*.pdb'
|
||||
IsOfficial: ${{ parameters.IsOfficial }}
|
||||
PublishPublicSymbolsPowershellPath: '$(Build.SourcesDirectory)\eng\common\Scripts\PublishPublicSymbols.ps1'
|
||||
|
||||
- task: PowerShell@2
|
||||
name: SetVersion
|
||||
|
|
|
@ -1,41 +0,0 @@
|
|||
parameters:
|
||||
- name: "SearchPattern"
|
||||
type: string
|
||||
default: ""
|
||||
- name: "IsOfficial"
|
||||
type: boolean
|
||||
default: False
|
||||
- name: "PublishPublicSymbolsPowershellPath"
|
||||
type: string
|
||||
default: "$(Build.SourcesDirectory)/eng/common/Scripts/PublishPublicSymbols.ps1"
|
||||
|
||||
steps:
|
||||
- task: PublishSymbols@2
|
||||
displayName: 'Publish private symbols to internal server'
|
||||
inputs:
|
||||
searchPattern: ${{ parameters.searchPattern }}
|
||||
symbolServerType: 'TeamServices'
|
||||
indexSources: true
|
||||
detailedLog: true
|
||||
SymbolsArtifactName: $(symbolsArtifactName)
|
||||
env:
|
||||
LIB: $(Build.SourcesDirectory)
|
||||
|
||||
# Publishing symbols publicly requires making an API call to the service and is handled by PublishPublicSymbols.ps1
|
||||
# in eng/common
|
||||
# See this page for more info:
|
||||
# https://www.osgwiki.com/wiki/Symbols_Publishing_Pipeline_to_SymWeb_and_MSDL
|
||||
- ${{ if eq(parameters.IsOfficial, 'true') }}:
|
||||
- pwsh: |
|
||||
Install-Module -Name Az.Accounts -Scope AllUsers -AllowClobber -Force
|
||||
displayName: Install Az.Accounts PowerShell module
|
||||
|
||||
# WinAppSDK-AZSC service connection must be used because the service principal created by this connection has been granted read and publish access
|
||||
- task: AzurePowerShell@5
|
||||
displayName: Publish symbols to SymWeb and MSDL
|
||||
inputs:
|
||||
azureSubscription: 'WinAppSDK-AZSC'
|
||||
ScriptType: 'InlineScript'
|
||||
Inline: ${{ parameters.PublishPublicSymbolsPowershellPath }} -RequestName "$(symbolsArtifactName)"
|
||||
azurePowerShellVersion: 'LatestVersion'
|
||||
pwsh: true
|
Загрузка…
Ссылка в новой задаче