搜索文件夹路径$(System.DefaultWorkingDirectory)下面是错误
==============================================================================
2017-07-12T17:22:40.7168687Z Task : Publish Test Results
2017-07-12T17:22:40.7168687Z Description : Publish Test Results to VSTS/TFS
2017-07-12T17:22:40.7168687Z Version : 2.0.1
2017-07-12T17:22:40.7168687Z Author : Microsoft Corporation
2017-07-12T17:22:40.7168687Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613742)
2017-07-12T17:22:40.7168687Z ==============================================================================
2017-07-12T17:22:41.1214206Z ##[warning]Failed to publish test results: Access to the path 'd:\a\1\s\DtlTestResults.trx' is denied.
2017-07-12T17:22:41.1244177Z ##[section]Async Command Start: Publish test results
2017-07-12T17:22:41.1244177Z ##[section]Async Command End: Publish test results
2017-07-12T17:22:41.1244177Z ##[section]Finishing: Publish Test Results DtlTestResults.trx
请检查您是否有足够的权限建立/发布测试结果。 Besidea,你是否在私人代理上排队?你可以在变量标签中将'system.debug'设置为'true'后,显示发布测试结果任务的设置以及构建日志是什么? –
感谢玛丽娜,我使用的托管代理,这里是日志 –
搜索文件夹= $(System.DefaultWorkingDirectory) –