azure-pipelines-tasks: [REGRESSION]: PublishSymbolsV2 v2.246.1 task fails with "ScriptHalted"

New issue checklist

Task name

PublishSymbolsV2

Breaking task version

2.246.1

Last working task version

2.244.1

Regression Description

The task simply fails with ScriptHalted. The log (see below) implies that it was unable to find Newtonsoft.Json.dll. No changes to our pipelines were made.

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Windows Server 2019, Windows Server 2022

Relevant log output

2024-09-26T17:19:00.8280723Z ##[debug]Evaluating condition for step: 'Publish symbols path'
2024-09-26T17:19:00.8282018Z ##[debug]Evaluating: succeeded()
2024-09-26T17:19:00.8282251Z ##[debug]Evaluating succeeded:
2024-09-26T17:19:00.8282723Z ##[debug]=> True
2024-09-26T17:19:00.8283130Z ##[debug]Result: True
2024-09-26T17:19:00.8283531Z ##[section]Starting: Publish symbols path
2024-09-26T17:19:00.8295936Z ==============================================================================
2024-09-26T17:19:00.8296079Z Task         : Index sources and publish symbols
2024-09-26T17:19:00.8296171Z Description  : Index your source code and publish symbols to a file share or Azure Artifacts symbol server
2024-09-26T17:19:00.8296300Z Version      : 2.246.1
2024-09-26T17:19:00.8296363Z Author       : Microsoft Corporation
2024-09-26T17:19:00.8296455Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/index-sources-publish-symbols
2024-09-26T17:19:00.8296573Z ==============================================================================
2024-09-26T17:19:01.2825617Z ##[debug]Agent environment resources - Disk: D:\ Available 205356.06 MB out of 511983.00 MB, Memory: Used 3058.00 MB out of 8190.00 MB, CPU: Usage 65.00%
2024-09-26T17:19:02.4872346Z ##[debug]VstsTaskSdk 0.21.0 commit 9abb170036d3b4cc1781def2efa436d9b059104c
2024-09-26T17:19:02.7131550Z ##[debug]Entering D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\PublishSymbols.ps1.
2024-09-26T17:19:02.7240821Z ##[debug]Loading module from path 'D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\ps_modules\PowershellHelpers\PowershellHelpers.psm1'.
2024-09-26T17:19:02.7664658Z ##[debug]Loading resource strings from: D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\ps_modules\PowershellHelpers\module.json
2024-09-26T17:19:02.7878028Z ##[debug]Loaded 3 strings.
2024-09-26T17:19:02.7923910Z ##[debug]SYSTEM_CULTURE: 'en-US'
2024-09-26T17:19:02.7974276Z ##[debug]Loading resource strings from: D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\ps_modules\PowershellHelpers\Strings\resources.resjson\en-US\resources.resjson
2024-09-26T17:19:02.8174786Z ##[debug]Loaded 3 strings.
2024-09-26T17:19:02.8679455Z ##[debug]Exporting function 'Invoke-ActionWithRetries'.
2024-09-26T17:19:02.8705892Z ##[debug]Exporting function 'Get-TempDirectoryPath'.
2024-09-26T17:19:02.8733473Z ##[debug]Importing function 'Get-TempDirectoryPath'.
2024-09-26T17:19:02.8751504Z ##[debug]Importing function 'Invoke-ActionWithRetries'.
2024-09-26T17:19:02.8784601Z ##[debug]Loading resource strings from: D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\Task.json
2024-09-26T17:19:03.0076012Z ##[debug]Loaded 36 strings.
2024-09-26T17:19:03.0111374Z ##[debug]SYSTEM_CULTURE: 'en-US'
2024-09-26T17:19:03.0139795Z ##[debug]Loading resource strings from: D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\Strings\resources.resjson\en-US\resources.resjson
2024-09-26T17:19:03.0767906Z ##[debug]Loaded 36 strings.
2024-09-26T17:19:03.0802060Z ##[debug]Loading module from path 'D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\SymbolsCommon.psm1'.
2024-09-26T17:19:03.1326322Z ##[debug]Exporting function 'Get-PdbstrPath'.
2024-09-26T17:19:03.1349199Z ##[debug]Exporting function 'Get-DbghelpPath'.
2024-09-26T17:19:03.1372922Z ##[debug]Exporting function 'Get-SymStorePath'.
2024-09-26T17:19:03.1394103Z ##[debug]Importing function 'Get-DbghelpPath'.
2024-09-26T17:19:03.1409062Z ##[debug]Importing function 'Get-PdbstrPath'.
2024-09-26T17:19:03.1423875Z ##[debug]Importing function 'Get-SymStorePath'.
2024-09-26T17:19:03.1664947Z ##[debug]INPUT_SYMBOLSERVERTYPE: 'TeamServices'
2024-09-26T17:19:03.1693057Z ##[debug]INPUT_DETAILEDLOG: 'true'
2024-09-26T17:19:03.1729139Z ##[debug] Converted to bool: True
2024-09-26T17:19:03.1759253Z ##[debug]INPUT_SYMBOLEXPIRATIONINDAYS: '36530'
2024-09-26T17:19:03.1797118Z ##[debug] Converted to int: 36530
2024-09-26T17:19:03.1819982Z ##[debug]INPUT_INDEXSOURCES: 'true'
2024-09-26T17:19:03.1835634Z ##[debug] Converted to bool: True
2024-09-26T17:19:03.1855455Z ##[debug]INPUT_COMPRESSSYMBOLS: 'false'
2024-09-26T17:19:03.2298935Z ##[debug] Converted to bool: False
2024-09-26T17:19:03.2324896Z ##[debug]INPUT_TREATNOTINDEXEDASWARNING: 'false'
2024-09-26T17:19:03.2330381Z ##[debug] Converted to bool: False
2024-09-26T17:19:03.2389099Z ##[debug]BUILD_SOURCESDIRECTORY: 'D:\build\256\s'
2024-09-26T17:19:03.2421187Z ##[debug]INPUT_SYMBOLSFOLDER: 'D:\build\256\s'
2024-09-26T17:19:03.2442563Z ##[debug]INPUT_SEARCHPATTERN: '**\bin\**\*.pdb'
2024-09-26T17:19:03.2752793Z ##[debug]Entering Find-VstsMatch.
2024-09-26T17:19:03.2865921Z ##[debug]DefaultRoot: 'D:\build\256\s'
2024-09-26T17:19:03.2995265Z ##[debug]FindOptions.FollowSpecifiedSymbolicLink: 'True'
2024-09-26T17:19:03.3022700Z ##[debug]FindOptions.FollowSymbolicLinks: 'True'
2024-09-26T17:19:03.3131134Z ##[debug]MatchOptions.Dot: 'True'
2024-09-26T17:19:03.3160849Z ##[debug]MatchOptions.FlipNegate: 'False'
2024-09-26T17:19:03.3190958Z ##[debug]MatchOptions.MatchBase: 'False'
2024-09-26T17:19:03.3223850Z ##[debug]MatchOptions.NoBrace: 'True'
2024-09-26T17:19:03.3255106Z ##[debug]MatchOptions.NoCase: 'True'
2024-09-26T17:19:03.3285748Z ##[debug]MatchOptions.NoComment: 'False'
2024-09-26T17:19:03.3314423Z ##[debug]MatchOptions.NoExt: 'False'
2024-09-26T17:19:03.3342791Z ##[debug]MatchOptions.NoGlobStar: 'False'
2024-09-26T17:19:03.3372494Z ##[debug]MatchOptions.NoNegate: 'False'
2024-09-26T17:19:03.3399818Z ##[debug]MatchOptions.NoNull: 'False'
2024-09-26T17:19:03.4151503Z ##[debug]Pattern: '**\bin\**\*.pdb'
2024-09-26T17:19:03.5110679Z ##[debug]FindPath: 'D:\build\256\s'
2024-09-26T17:19:03.5140548Z ##[debug]StatOnly: 'False'
2024-09-26T17:19:05.4297955Z ##[debug]Found 5681 paths.
2024-09-26T17:19:05.4316188Z ##[debug]Applying include pattern.
2024-09-26T17:19:05.4345794Z ##[debug]AdjustedPattern: 'D:\build\256\s\**\bin\**\*.pdb'
2024-09-26T17:19:05.7160547Z ##[debug]101 matches
2024-09-26T17:19:05.7256615Z ##[debug]101 final results
2024-09-26T17:19:05.7285224Z ##[debug]Leaving Find-VstsMatch.
2024-09-26T17:19:05.7693191Z Found 101 files.
2024-09-26T17:19:05.7754578Z ##[debug]Loading module from path 'D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\IndexHelpers\IndexHelpers.psm1'.
2024-09-26T17:19:05.8811829Z ##[debug]Adding dbghelp native wrappers.
2024-09-26T17:19:06.2813084Z ##[debug]Agent environment resources - Disk: D:\ Available 205356.06 MB out of 511983.00 MB, Memory: Used 2976.00 MB out of 8190.00 MB, CPU: Usage 65.00%
2024-09-26T17:19:07.0233531Z ##[debug]Exporting function 'Invoke-IndexSources'.
2024-09-26T17:19:07.0253254Z ##[debug]Importing function 'Invoke-IndexSources'.
2024-09-26T17:19:07.0613129Z ##[debug]Entering Invoke-IndexSources.
2024-09-26T17:19:07.0664377Z ##[debug] TreatNotIndexedAsWarning: 'False'
2024-09-26T17:19:07.0873655Z ##[debug]Asserting leaf path exists: 'D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\pdbstr.exe'
2024-09-26T17:19:07.1047322Z ##[debug]Entering Add-DbghelpLibrary.
2024-09-26T17:19:07.1078768Z ##[debug]Asserting leaf path exists: 'D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\dbghelp.dll'
2024-09-26T17:19:07.1393357Z ##[debug]Entering Invoke-LoadLibrary.
2024-09-26T17:19:07.1409167Z ##[debug] LiteralPath: 'D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\dbghelp.dll'
2024-09-26T17:19:07.2242104Z ##[debug]Leaving Invoke-LoadLibrary.
2024-09-26T17:19:07.2299418Z ##[debug]Leaving Add-DbghelpLibrary.
2024-09-26T17:19:07.2397847Z ##[debug]Entering Get-SourceProvider.
2024-09-26T17:19:07.2448895Z ##[debug]BUILD_REPOSITORY_PROVIDER: 'TfsVersionControl'
2024-09-26T17:19:07.2471917Z ##[debug]BUILD_SOURCESDIRECTORY: 'D:\build\256\s'
2024-09-26T17:19:07.2519103Z ##[debug]SYSTEM_TEAMPROJECTID: '5fc254ed-6d6f-4958-9a75-eff0bd910d0c'
2024-09-26T17:19:07.2630056Z ##[debug]Entering Get-VstsTfsService.
2024-09-26T17:19:07.2649069Z ##[debug] TypeName: 'Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer'
2024-09-26T17:19:07.2706766Z ##[debug]SYSTEM_TEAMFOUNDATIONCOLLECTIONURI: 'https://dev.azure.com/tfsmadison/'
2024-09-26T17:19:07.2765599Z ##[debug]Entering Get-TfsClientCredentials.
2024-09-26T17:19:07.2782119Z ##[debug] OMDirectory: ''
2024-09-26T17:19:07.2880563Z ##[debug]ENDPOINT_URL_SystemVssConnection: 'https://dev.azure.com/tfsmadison/'
2024-09-26T17:19:07.2903662Z ##[debug]ENDPOINT_AUTH_SystemVssConnection: '********'
2024-09-26T17:19:07.2925608Z ##[debug]ENDPOINT_DATA_SystemVssConnection (empty)
2024-09-26T17:19:07.2977084Z ##[debug]Testing file path: 'Newtonsoft.Json.dll'
2024-09-26T17:19:07.2992899Z ##[debug]Not found. Rethrowing exception.
2024-09-26T17:19:07.3231485Z ##[debug]Leaving Get-TfsClientCredentials.
2024-09-26T17:19:07.3349534Z ##[debug]Leaving Get-VstsTfsService.
2024-09-26T17:19:07.3373451Z ##[debug]Leaving Get-SourceProvider.
2024-09-26T17:19:07.3404984Z ##[debug]Entering Remove-DbghelpLibrary.
2024-09-26T17:19:07.3428583Z ##[debug] HModule: '140735568543744'
2024-09-26T17:19:07.3497924Z ##[debug]Leaving Remove-DbghelpLibrary.
2024-09-26T17:19:07.3516113Z ##[debug]Leaving Invoke-IndexSources.
2024-09-26T17:19:07.3538092Z ##[debug]Leaving D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\PublishSymbols.ps1.
2024-09-26T17:19:07.3696211Z ##[debug]Caught exception from task script.
2024-09-26T17:19:07.3724527Z ##[debug]Error record:
2024-09-26T17:19:07.5500995Z ##[debug]Get-VstsTfsService : ScriptHalted
2024-09-26T17:19:07.5512854Z ##[debug]At D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\IndexHelpers\SourceProviderFunctions.ps1:22 char:37
2024-09-26T17:19:07.5523340Z ##[debug]+ ... rolServer = Get-VstsTfsService -TypeName 'Microsoft.TeamFoundation.Ve ...
2024-09-26T17:19:07.5534190Z ##[debug]+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-09-26T17:19:07.5544852Z ##[debug]    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
2024-09-26T17:19:07.5555145Z ##[debug]    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-VstsTfsService
2024-09-26T17:19:07.5566095Z ##[debug] 
2024-09-26T17:19:07.5584170Z ##[debug]Script stack trace:
2024-09-26T17:19:07.5621718Z ##[debug]at Get-TfsService, D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\ps_modules\VstsTaskSdk\ServerOMFunctions.ps1: line 252
2024-09-26T17:19:07.5634532Z ##[debug]at Get-SourceProvider, D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\IndexHelpers\SourceProviderFunctions.ps1: line 22
2024-09-26T17:19:07.5644457Z ##[debug]at Invoke-IndexSources, D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\IndexHelpers\IndexFunctions.ps1: line 34
2024-09-26T17:19:07.5654677Z ##[debug]at <ScriptBlock>, D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\PublishSymbols.ps1: line 144
2024-09-26T17:19:07.5664932Z ##[debug]at <ScriptBlock>, <No file>: line 1
2024-09-26T17:19:07.5675240Z ##[debug]at <ScriptBlock>, <No file>: line 22
2024-09-26T17:19:07.5685418Z ##[debug]at <ScriptBlock>, <No file>: line 18
2024-09-26T17:19:07.5695601Z ##[debug]at <ScriptBlock>, <No file>: line 1
2024-09-26T17:19:07.5714260Z ##[debug]Exception:
2024-09-26T17:19:07.5754326Z ##[debug]Microsoft.PowerShell.Commands.WriteErrorException: ScriptHalted
2024-09-26T17:19:07.6027962Z ##[error]ScriptHalted
2024-09-26T17:19:07.6028895Z ##[debug]Processed: ##vso[task.logissue type=error;source=TaskInternal;correlationId=d841dedf-e380-44a9-b158-7685e1b962da]ScriptHalted
2024-09-26T17:19:07.6034924Z ##[debug]Processed: ##vso[task.complete result=Failed]
2024-09-26T17:19:07.6434197Z ##[section]Finishing: Publish symbols path

Full task logs with system.debug enabled

UNSUCCESSFUL RUN
2024-09-26T17:19:00.8280723Z ##[debug]Evaluating condition for step: 'Publish symbols path'
2024-09-26T17:19:00.8282018Z ##[debug]Evaluating: succeeded()
2024-09-26T17:19:00.8282251Z ##[debug]Evaluating succeeded:
2024-09-26T17:19:00.8282723Z ##[debug]=> True
2024-09-26T17:19:00.8283130Z ##[debug]Result: True
2024-09-26T17:19:00.8283531Z ##[section]Starting: Publish symbols path
2024-09-26T17:19:00.8295936Z ==============================================================================
2024-09-26T17:19:00.8296079Z Task         : Index sources and publish symbols
2024-09-26T17:19:00.8296171Z Description  : Index your source code and publish symbols to a file share or Azure Artifacts symbol server
2024-09-26T17:19:00.8296300Z Version      : 2.246.1
2024-09-26T17:19:00.8296363Z Author       : Microsoft Corporation
2024-09-26T17:19:00.8296455Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/index-sources-publish-symbols
2024-09-26T17:19:00.8296573Z ==============================================================================
2024-09-26T17:19:01.2825617Z ##[debug]Agent environment resources - Disk: D:\ Available 205356.06 MB out of 511983.00 MB, Memory: Used 3058.00 MB out of 8190.00 MB, CPU: Usage 65.00%
2024-09-26T17:19:02.4872346Z ##[debug]VstsTaskSdk 0.21.0 commit 9abb170036d3b4cc1781def2efa436d9b059104c
2024-09-26T17:19:02.7131550Z ##[debug]Entering D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\PublishSymbols.ps1.
2024-09-26T17:19:02.7240821Z ##[debug]Loading module from path 'D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\ps_modules\PowershellHelpers\PowershellHelpers.psm1'.
2024-09-26T17:19:02.7664658Z ##[debug]Loading resource strings from: D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\ps_modules\PowershellHelpers\module.json
2024-09-26T17:19:02.7878028Z ##[debug]Loaded 3 strings.
2024-09-26T17:19:02.7923910Z ##[debug]SYSTEM_CULTURE: 'en-US'
2024-09-26T17:19:02.7974276Z ##[debug]Loading resource strings from: D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\ps_modules\PowershellHelpers\Strings\resources.resjson\en-US\resources.resjson
2024-09-26T17:19:02.8174786Z ##[debug]Loaded 3 strings.
2024-09-26T17:19:02.8679455Z ##[debug]Exporting function 'Invoke-ActionWithRetries'.
2024-09-26T17:19:02.8705892Z ##[debug]Exporting function 'Get-TempDirectoryPath'.
2024-09-26T17:19:02.8733473Z ##[debug]Importing function 'Get-TempDirectoryPath'.
2024-09-26T17:19:02.8751504Z ##[debug]Importing function 'Invoke-ActionWithRetries'.
2024-09-26T17:19:02.8784601Z ##[debug]Loading resource strings from: D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\Task.json
2024-09-26T17:19:03.0076012Z ##[debug]Loaded 36 strings.
2024-09-26T17:19:03.0111374Z ##[debug]SYSTEM_CULTURE: 'en-US'
2024-09-26T17:19:03.0139795Z ##[debug]Loading resource strings from: D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\Strings\resources.resjson\en-US\resources.resjson
2024-09-26T17:19:03.0767906Z ##[debug]Loaded 36 strings.
2024-09-26T17:19:03.0802060Z ##[debug]Loading module from path 'D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\SymbolsCommon.psm1'.
2024-09-26T17:19:03.1326322Z ##[debug]Exporting function 'Get-PdbstrPath'.
2024-09-26T17:19:03.1349199Z ##[debug]Exporting function 'Get-DbghelpPath'.
2024-09-26T17:19:03.1372922Z ##[debug]Exporting function 'Get-SymStorePath'.
2024-09-26T17:19:03.1394103Z ##[debug]Importing function 'Get-DbghelpPath'.
2024-09-26T17:19:03.1409062Z ##[debug]Importing function 'Get-PdbstrPath'.
2024-09-26T17:19:03.1423875Z ##[debug]Importing function 'Get-SymStorePath'.
2024-09-26T17:19:03.1664947Z ##[debug]INPUT_SYMBOLSERVERTYPE: 'TeamServices'
2024-09-26T17:19:03.1693057Z ##[debug]INPUT_DETAILEDLOG: 'true'
2024-09-26T17:19:03.1729139Z ##[debug] Converted to bool: True
2024-09-26T17:19:03.1759253Z ##[debug]INPUT_SYMBOLEXPIRATIONINDAYS: '36530'
2024-09-26T17:19:03.1797118Z ##[debug] Converted to int: 36530
2024-09-26T17:19:03.1819982Z ##[debug]INPUT_INDEXSOURCES: 'true'
2024-09-26T17:19:03.1835634Z ##[debug] Converted to bool: True
2024-09-26T17:19:03.1855455Z ##[debug]INPUT_COMPRESSSYMBOLS: 'false'
2024-09-26T17:19:03.2298935Z ##[debug] Converted to bool: False
2024-09-26T17:19:03.2324896Z ##[debug]INPUT_TREATNOTINDEXEDASWARNING: 'false'
2024-09-26T17:19:03.2330381Z ##[debug] Converted to bool: False
2024-09-26T17:19:03.2389099Z ##[debug]BUILD_SOURCESDIRECTORY: 'D:\build\256\s'
2024-09-26T17:19:03.2421187Z ##[debug]INPUT_SYMBOLSFOLDER: 'D:\build\256\s'
2024-09-26T17:19:03.2442563Z ##[debug]INPUT_SEARCHPATTERN: '**\bin\**\*.pdb'
2024-09-26T17:19:03.2752793Z ##[debug]Entering Find-VstsMatch.
2024-09-26T17:19:03.2865921Z ##[debug]DefaultRoot: 'D:\build\256\s'
2024-09-26T17:19:03.2995265Z ##[debug]FindOptions.FollowSpecifiedSymbolicLink: 'True'
2024-09-26T17:19:03.3022700Z ##[debug]FindOptions.FollowSymbolicLinks: 'True'
2024-09-26T17:19:03.3131134Z ##[debug]MatchOptions.Dot: 'True'
2024-09-26T17:19:03.3160849Z ##[debug]MatchOptions.FlipNegate: 'False'
2024-09-26T17:19:03.3190958Z ##[debug]MatchOptions.MatchBase: 'False'
2024-09-26T17:19:03.3223850Z ##[debug]MatchOptions.NoBrace: 'True'
2024-09-26T17:19:03.3255106Z ##[debug]MatchOptions.NoCase: 'True'
2024-09-26T17:19:03.3285748Z ##[debug]MatchOptions.NoComment: 'False'
2024-09-26T17:19:03.3314423Z ##[debug]MatchOptions.NoExt: 'False'
2024-09-26T17:19:03.3342791Z ##[debug]MatchOptions.NoGlobStar: 'False'
2024-09-26T17:19:03.3372494Z ##[debug]MatchOptions.NoNegate: 'False'
2024-09-26T17:19:03.3399818Z ##[debug]MatchOptions.NoNull: 'False'
2024-09-26T17:19:03.4151503Z ##[debug]Pattern: '**\bin\**\*.pdb'
2024-09-26T17:19:03.5110679Z ##[debug]FindPath: 'D:\build\256\s'
2024-09-26T17:19:03.5140548Z ##[debug]StatOnly: 'False'
2024-09-26T17:19:05.4297955Z ##[debug]Found 5681 paths.
2024-09-26T17:19:05.4316188Z ##[debug]Applying include pattern.
2024-09-26T17:19:05.4345794Z ##[debug]AdjustedPattern: 'D:\build\256\s\**\bin\**\*.pdb'
2024-09-26T17:19:05.7160547Z ##[debug]101 matches
2024-09-26T17:19:05.7256615Z ##[debug]101 final results
2024-09-26T17:19:05.7285224Z ##[debug]Leaving Find-VstsMatch.
2024-09-26T17:19:05.7693191Z Found 101 files.
2024-09-26T17:19:05.7754578Z ##[debug]Loading module from path 'D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\IndexHelpers\IndexHelpers.psm1'.
2024-09-26T17:19:05.8811829Z ##[debug]Adding dbghelp native wrappers.
2024-09-26T17:19:06.2813084Z ##[debug]Agent environment resources - Disk: D:\ Available 205356.06 MB out of 511983.00 MB, Memory: Used 2976.00 MB out of 8190.00 MB, CPU: Usage 65.00%
2024-09-26T17:19:07.0233531Z ##[debug]Exporting function 'Invoke-IndexSources'.
2024-09-26T17:19:07.0253254Z ##[debug]Importing function 'Invoke-IndexSources'.
2024-09-26T17:19:07.0613129Z ##[debug]Entering Invoke-IndexSources.
2024-09-26T17:19:07.0664377Z ##[debug] TreatNotIndexedAsWarning: 'False'
2024-09-26T17:19:07.0873655Z ##[debug]Asserting leaf path exists: 'D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\pdbstr.exe'
2024-09-26T17:19:07.1047322Z ##[debug]Entering Add-DbghelpLibrary.
2024-09-26T17:19:07.1078768Z ##[debug]Asserting leaf path exists: 'D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\dbghelp.dll'
2024-09-26T17:19:07.1393357Z ##[debug]Entering Invoke-LoadLibrary.
2024-09-26T17:19:07.1409167Z ##[debug] LiteralPath: 'D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\dbghelp.dll'
2024-09-26T17:19:07.2242104Z ##[debug]Leaving Invoke-LoadLibrary.
2024-09-26T17:19:07.2299418Z ##[debug]Leaving Add-DbghelpLibrary.
2024-09-26T17:19:07.2397847Z ##[debug]Entering Get-SourceProvider.
2024-09-26T17:19:07.2448895Z ##[debug]BUILD_REPOSITORY_PROVIDER: 'TfsVersionControl'
2024-09-26T17:19:07.2471917Z ##[debug]BUILD_SOURCESDIRECTORY: 'D:\build\256\s'
2024-09-26T17:19:07.2519103Z ##[debug]SYSTEM_TEAMPROJECTID: '5fc254ed-6d6f-4958-9a75-eff0bd910d0c'
2024-09-26T17:19:07.2630056Z ##[debug]Entering Get-VstsTfsService.
2024-09-26T17:19:07.2649069Z ##[debug] TypeName: 'Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer'
2024-09-26T17:19:07.2706766Z ##[debug]SYSTEM_TEAMFOUNDATIONCOLLECTIONURI: 'https://dev.azure.com/tfsmadison/'
2024-09-26T17:19:07.2765599Z ##[debug]Entering Get-TfsClientCredentials.
2024-09-26T17:19:07.2782119Z ##[debug] OMDirectory: ''
2024-09-26T17:19:07.2880563Z ##[debug]ENDPOINT_URL_SystemVssConnection: 'https://dev.azure.com/tfsmadison/'
2024-09-26T17:19:07.2903662Z ##[debug]ENDPOINT_AUTH_SystemVssConnection: '********'
2024-09-26T17:19:07.2925608Z ##[debug]ENDPOINT_DATA_SystemVssConnection (empty)
2024-09-26T17:19:07.2977084Z ##[debug]Testing file path: 'Newtonsoft.Json.dll'
2024-09-26T17:19:07.2992899Z ##[debug]Not found. Rethrowing exception.
2024-09-26T17:19:07.3231485Z ##[debug]Leaving Get-TfsClientCredentials.
2024-09-26T17:19:07.3349534Z ##[debug]Leaving Get-VstsTfsService.
2024-09-26T17:19:07.3373451Z ##[debug]Leaving Get-SourceProvider.
2024-09-26T17:19:07.3404984Z ##[debug]Entering Remove-DbghelpLibrary.
2024-09-26T17:19:07.3428583Z ##[debug] HModule: '140735568543744'
2024-09-26T17:19:07.3497924Z ##[debug]Leaving Remove-DbghelpLibrary.
2024-09-26T17:19:07.3516113Z ##[debug]Leaving Invoke-IndexSources.
2024-09-26T17:19:07.3538092Z ##[debug]Leaving D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\PublishSymbols.ps1.
2024-09-26T17:19:07.3696211Z ##[debug]Caught exception from task script.
2024-09-26T17:19:07.3724527Z ##[debug]Error record:
2024-09-26T17:19:07.5500995Z ##[debug]Get-VstsTfsService : ScriptHalted
2024-09-26T17:19:07.5512854Z ##[debug]At D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\IndexHelpers\SourceProviderFunctions.ps1:22 char:37
2024-09-26T17:19:07.5523340Z ##[debug]+ ... rolServer = Get-VstsTfsService -TypeName 'Microsoft.TeamFoundation.Ve ...
2024-09-26T17:19:07.5534190Z ##[debug]+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-09-26T17:19:07.5544852Z ##[debug]    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
2024-09-26T17:19:07.5555145Z ##[debug]    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-VstsTfsService
2024-09-26T17:19:07.5566095Z ##[debug] 
2024-09-26T17:19:07.5584170Z ##[debug]Script stack trace:
2024-09-26T17:19:07.5621718Z ##[debug]at Get-TfsService, D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\ps_modules\VstsTaskSdk\ServerOMFunctions.ps1: line 252
2024-09-26T17:19:07.5634532Z ##[debug]at Get-SourceProvider, D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\IndexHelpers\SourceProviderFunctions.ps1: line 22
2024-09-26T17:19:07.5644457Z ##[debug]at Invoke-IndexSources, D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\IndexHelpers\IndexFunctions.ps1: line 34
2024-09-26T17:19:07.5654677Z ##[debug]at <ScriptBlock>, D:\build\_tasks\PublishSymbols_0675668a-7bba-4ccb-901d-5ad6554ca653\2.246.1\PublishSymbols.ps1: line 144
2024-09-26T17:19:07.5664932Z ##[debug]at <ScriptBlock>, <No file>: line 1
2024-09-26T17:19:07.5675240Z ##[debug]at <ScriptBlock>, <No file>: line 22
2024-09-26T17:19:07.5685418Z ##[debug]at <ScriptBlock>, <No file>: line 18
2024-09-26T17:19:07.5695601Z ##[debug]at <ScriptBlock>, <No file>: line 1
2024-09-26T17:19:07.5714260Z ##[debug]Exception:
2024-09-26T17:19:07.5754326Z ##[debug]Microsoft.PowerShell.Commands.WriteErrorException: ScriptHalted
2024-09-26T17:19:07.6027962Z ##[error]ScriptHalted
2024-09-26T17:19:07.6028895Z ##[debug]Processed: ##vso[task.logissue type=error;source=TaskInternal;correlationId=d841dedf-e380-44a9-b158-7685e1b962da]ScriptHalted
2024-09-26T17:19:07.6034924Z ##[debug]Processed: ##vso[task.complete result=Failed]
2024-09-26T17:19:07.6434197Z ##[section]Finishing: Publish symbols path
SUCCESSFUL RUN
Not available at this time

Repro steps

variables:
- name: BuildParameters.solution
  value: '**\*.sln'
trigger:
  paths:
    include:
    - $/Audit Manager/Trunk
name: 1.9.0$(rev:.r)
resources:
  repositories:
  - repository: self
    type: git
    ref: $/Audit Manager/Trunk
jobs:
- job: Phase_1
  displayName: Build and test code
  timeoutInMinutes: 30
  cancelTimeoutInMinutes: 1
  pool:
    name: Default
  steps:
  - checkout: self
    clean: true
  - task: NuGetToolInstaller@1
    displayName: 'Use NuGet '
  - task: NuGetAuthenticate@1
    displayName: NuGet Authenticate
  - task: NuGetCommand@2
    displayName: NuGet restore
    inputs:
      solution: $(BuildParameters.solution)
      selectOrConfig: config
      feedRestore: 41ef47c7-a6d6-487a-b7a2-5b3744abf97a
      nugetConfigPath: $(build.sourcesDirectory)/nuget.config
  - task: VSBuild@1
    displayName: Build solution **\*.sln
    inputs:
      msbuildArgs: /p:VersionPrefix=$(Build.BuildNumber)
      platform: $(BuildPlatform)
      configuration: $(BuildConfiguration)
      maximumCpuCount: true
  - task: PublishSymbols@2
    displayName: Publish symbols path
    continueOnError: True
    inputs:
      SearchPattern: '**\bin\**\*.pdb'
      SymbolServerType: TeamServices

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 23 (4 by maintainers)

Most upvoted comments

Sorry for the inconvenience. Task is reverted with version pointing to 2.246.3 -> 2.244.1 and 2.246.1 -> 2.244.1. Issue is fixed and it should rollout soon

This is a TFVC build pipeline. I can’t find a way to edit the YAML text itself. The editor is only letting me choose from version 1.* or version 2.*

image

More information: v2.246.1 appears to work if you are not indexing sources. My YAML pipelines for GitHub-based code run just fine without any errors or specifying a downgraded version.

This is a TFVC build pipeline. I can’t find a way to edit the YAML text itself. The editor is only letting me choose from version 1.* or version 2.*

image

Our TFVC projects are having this issue as well. To edit the YAML directly the classic pipeline must be migrated to a YAML pipeline as specified here: https://learn.microsoft.com/en-us/azure/devops/pipelines/release/from-classic-pipelines?view=azure-devops

Unfortunately it seems that projects must first be migrated from TFVC to git in order to use the newer YAML pipelines. Here is a developer community thread I found on the subject: https://developercommunity.visualstudio.com/t/enable-yaml-for-tfvc-1/419818

------------------

Edit: We have found a temporary fix by simply changing the publish symbols task version from 2.* to 1.*