Update to use WindowsAppSDK-PublishSymbol-Steps.yml from WindowsAppSDK Config (#4624)

This commit is contained in:
Kyaw Thant 2024-08-08 16:16:08 -07:00 коммит произвёл GitHub
Родитель 4773024196
Коммит ec1075cb32
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
4 изменённых файлов: 3 добавлений и 47 удалений

Просмотреть файл

@ -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