Indexing 索引来源及;发布符号步骤在TFS 2015中失败

Indexing 索引来源及;发布符号步骤在TFS 2015中失败,indexing,tfs,build,symbols,tfs-2015,Indexing,Tfs,Build,Symbols,Tfs 2015,默认情况下,TFS生成在VisualStudio生成定义中创建“索引源和发布符号”步骤。当步骤的属性“发布符号的路径”为空时,一切正常。但是,当设置本地目录的路径时,该步骤会生成以下错误: 2015-09-25T11:00:09.7991491Z Executing the powershell script: C:\NewAgent\tasks\PublishSymbols\1.0.4\PublishSymbols.ps1 2015-09-25T11:00:10.0022755Z Find-F

默认情况下,TFS生成在VisualStudio生成定义中创建“索引源和发布符号”步骤。当步骤的属性“发布符号的路径”为空时,一切正常。但是,当设置本地目录的路径时,该步骤会生成以下错误:

2015-09-25T11:00:09.7991491Z Executing the powershell script: C:\NewAgent\tasks\PublishSymbols\1.0.4\PublishSymbols.ps1
2015-09-25T11:00:10.0022755Z Find-Files -SearchPattern **\bin\**\*.pdb -RootFolder C:\NewAgent\_work\990dcb3f\Projects
2015-09-25T11:00:10.0491548Z Found 15 files to index...
2015-09-25T11:00:10.0491548Z Invoke-IndexSources -RepositoryEndpoint <repositoryEndpoint> -SourceFolder C:\NewAgent\_work\990dcb3f\Projects -PdbFiles <pdbFiles>
2015-09-25T11:00:10.6272794Z Invoke-PublishSymbols -PdbFiles <pdbFiles> -Share C:\DebugSymbols -Product EntityMapper -Version 20150925.14 -MaximumWaitTime 7200000 -MaximumSemaphoreAge 1440 -ArtifactName 
2015-09-25T11:00:10.7348541Z ##[error]Can't infer artifact type from artifact location C:\DebugSymbols.
2015-09-25T11:00:10.7504779Z  
2015-09-25T11:00:10.7504779Z Start: AssociateArtifact
2015-09-25T11:00:10.7504779Z ##[error]Artifact Type is required.
2015-09-25T11:00:10.7504779Z End: AssociateArtifact
2015-09-25T11:00:09.7991491Z执行powershell脚本:C:\NewAgent\tasks\PublishSymbols\1.0.4\PublishSymbols.ps1
2015-09-25T11:00:10.002755Z查找文件-搜索模式**\bin\***.pdb-根文件夹C:\NewAgent\\u work\990dcb3f\Projects
2015-09-25T11:00:10.0491548Z找到15个要索引的文件。。。
2015-09-25T11:00:10.0491548Z调用索引源-RepositoryEndpoint-SourceFolder C:\NewAgent\\u work\990dcb3f\Projects-PdbFiles
2015-09-25T11:00:10.6272794Z调用发布符号-PDB文件-共享C:\DebugSymbols-产品实体映射-版本20150925.14-最大等待时间7200000-最大信号量1440-工件名称
2015-09-25T11:00:10.7348541Z##[错误]无法从工件位置C:\DebugSymbols推断工件类型。
2015-09-25T11:00:10.7504779Z
2015-09-25T11:00:10.7504779Z开始:协会会员
2015-09-25T11:00:10.7504779Z###[错误]工件类型是必需的。
2015-09-25T11:00:10.7504779Z结束:协会会员
pdb文件被发布到指定的目录,所以我不太明白是什么导致了错误(这会导致整个构建作业失败)

当步骤的属性“发布符号的路径”为空时,一切正常

是,因为如果未设置符号路径,脚本将仅索引源,而不发布符号

但是,当设置本地目录的路径时,该步骤会生成错误

你需要。在您的案例中,设置文件夹共享和权限。

在我的案例中,将“发布符号的路径”从

//myserver/symbols

\\myserver\symbols


解决了这个问题。我不知道为什么会这样,但好吧…:)

即使将权限设置为对本地文件夹上的每个人进行完全控制,发布符号步骤也会导致上述错误。