Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions eng/pipelines/templates/jobs/publish-symbols.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
parameters:
- name: DependsOn
type: object
default: []

jobs:
- job: PublishSymbols
dependsOn: ${{ parameters.DependsOn }}
displayName: "Publish symbols"
condition: and(succeeded(), ne(variables['Skip.PublishPackage'], 'true'))
timeoutInMinutes: 120

steps:
- checkout: azure-sdk-build-tools

- download: current
displayName: Download binaries_signed
artifact: binaries_signed

- task: AzurePowershell@5
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How much overlap does this have with our common publish template? Should we be sharing?

displayName: 'Reserve symbols api request name'
inputs:
pwsh: true
azureSubscription: 'Azure SDK Symbols Publishing'
azurePowerShellVersion: 'LatestVersion'
ScriptType: 'FilePath'
ScriptPath: $(Build.SourcesDirectory)/scripts/symbols/New-SymbolsApiRequestName.ps1
ScriptArguments: >
-ProjectName 'azure-sdk'
-VariableName 'SymbolsRequestName'

- task: PublishSymbols@2
displayName: 'Publish symbols to Azure DevOps'
inputs:
SymbolsFolder: $(Pipeline.Workspace)/binaries_signed
SearchPattern: '**/*.pdb'
SymbolServerType: 'TeamServices'
SymbolsArtifactName: '$(SymbolsRequestName)'

- task: AzurePowershell@5
displayName: 'Request SymWeb and MSDL api publishing'
inputs:
pwsh: true
azureSubscription: 'Azure SDK Symbols Publishing'
azurePowerShellVersion: 'LatestVersion'
ScriptType: 'FilePath'
ScriptPath: $(Build.SourcesDirectory)/scripts/symbols/Invoke-SymbolsApiRequest.ps1
ScriptArguments: >
-ProjectName 'azure-sdk'
-RequestName '$(SymbolsRequestName)'
-Wait
2 changes: 2 additions & 0 deletions eng/pipelines/templates/jobs/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ jobs:
env:
GH_TOKEN: $(azuresdk-github-pat)

- template: /eng/pipelines/templates/jobs/publish-symbols.yml

- template: /eng/pipelines/templates/jobs/npm/release-npm.yml
parameters:
ServerName: ${{ parameters.ServerName }}
Expand Down
Loading