1
votes

I have a problem with publishing symbols (move to shared directory on symbol server) using Index Sources & Publish Symbols step in TFS 2015 build definition.

I have simple Hello World project - one dll, one pdb in output and simple TFS 2015 build definition. Build definition contains two steps.

  1. VS Build - Build solution \**\*.sln (with default configuration)
  2. Index Sources and Publish Symbols - Publish symbols path: \\sw\\symbols (with default configuration and shared directory symbols on sw pc). This location works ok with XAML Build Definitions!

When i queue new build, everything seems ok (variables have right content and so on) but shared folder on symbol server not contains desired pdb file.

Please check following (truncation) TFS 2015 build log. Thanks.

Starting: Build  
Starting: Get sources  
Checked out branch refs/heads/master for repository 1400666 at commit bd3b859e312be62d8af976f233f7407863ba33b8
Running tasks  

Starting task: Build solution \**\*.sln  
Build succeeded.  
    0 Warning(s)
    0 Error(s)
Time Elapsed 00:00:00.60  
Finishing task: VSBuild  

Starting task: Publish symbols path: \\sw\\symbols  
Executing the powershell script: C:\BuildAgent\tasks\PublishSymbols\1.0.4\PublishSymbols.ps1  
Find-Files -SearchPattern **\bin\**\*.pdb -RootFolder C:\BuildAgent\_work\57cae171\1400666  
>pdbFile= C:\BuildAgent\_work\57cae171\1400666\HelloWorld\bin\Debug\HelloWorld.pdb  
>Found 1 files to index...  
Invoke-IndexSources -RepositoryEndpoint repositoryEndpoint -SourceFolder C:\BuildAgent\_work\57cae171\1400666 -PdbFiles pdbFiles  
>Invoke-PublishSymbols -PdbFiles pdbFiles -Share \\sw02\\symbols -Product Build -Version 20160108.7 -MaximumWaitTime 7200000 -MaximumSemaphoreAge 1440 -ArtifactName Symbols_debug  
Start: AssociateArtifact  
Associated artifact 15 with build 986  
End: AssociateArtifact  
Finishing task: PublishSymbols  

Worker Worker-e99a050a-0cc5-477e-bf6f-cd374173434f finished running job e99a050a-0cc5-477e-bf6f-cd374173434f  
Finishing Build  

NOTE: publish symbols using symstore.exe (in my ps1 script in powershell build step) works.

2
According to the logs, the symbols file has been published to \\sw02\symbols folder. When the vNext build publish the symbols to a folder, it will create a folder like "000Admin" in it and record the add file information in the folder. Can you check if it is there?Eddie Chen - MSFT
No, is not. The symbol folder is still empty.honzakuzel1989
Are you able to solve this. For me this task is working fine but when I debug like consumer it is showing D\1\a... location and saying file is not found on local system. After this task how you debug. I used this docs.microsoft.com/en-us/azure/devops/artifacts/symbols/…Ziggler
You have to put into your question, that most obvious things has been tried and checked. I'm surprised no-one suggested reinstall.Christian

2 Answers

0
votes

I've seen the same issue when the path to publish symbols (your shared dir) has a "\" at the end. I had a path set to something like \bldmachine\final\symbols\ and everything appeared to succeed, but there were no symbols published. Only when I deleted the trailing "\" did it start working. Final working path was like \bldmachine\final\symbols

0
votes

I just reproduce this issue after I enter a redundant blank space at the end of the path. So you may need to check the publish symbols path in your build definition, make sure there is no redundant space in it.