-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish symbol for Microsoft.PowerShell.PSResourceGet to Microsoft sy…
…mbol server (#1434)
- Loading branch information
Showing
2 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
parameters: | ||
jobName1: publish_symbols_job | ||
displayValidationJob1: 'Publish symbol to Microsoft symbol server' | ||
|
||
jobs: | ||
- job: ${{ parameters.jobName1 }} | ||
displayName: ${{ parameters.displayValidationJob1 }} | ||
pool: | ||
name: 1ES | ||
demands: | ||
- ImageOverride -equals PSMMS2019-Secure | ||
timeoutInMinutes: 2880 # job times out in 2 days | ||
steps: | ||
- task: DownloadPipelineArtifact@2 | ||
displayName: 'Download and publish symbols' | ||
inputs: | ||
artifact: symbolfile | ||
path: '$(Pipeline.Workspace)\symbolResult' | ||
pattern: '**/*.pdb' | ||
|
||
- pwsh: | | ||
$symbolsRoot = New-Item -Path "$(Pipeline.Workspace)/symbols" -ItemType Directory -Verbose | ||
Copy-Item -Path "$(Pipeline.Workspace)\symbolResult\Microsoft.PowerShell.PSResourceGet.pdb" -Destination $symbolsRoot | ||
Write-Verbose -Verbose "Enumerating $symbolsRoot" | ||
Get-ChildItem -Path $symbolsRoot -Recurse | ||
$vstsCommandString = "vso[task.setvariable variable=SymbolsPath]$symbolsRoot" | ||
Write-Verbose -Message "$vstsCommandString" -Verbose | ||
Write-Host -Object "##$vstsCommandString" | ||
displayName: Copy symbol file to path for task | ||
- task: PublishSymbols@2 | ||
inputs: | ||
symbolsFolder: '$(SymbolsPath)' | ||
searchPattern: '*.pdb' | ||
indexSources: false | ||
publishSymbols: true | ||
symbolServerType: teamServices | ||
detailedLog: true |