centos linux上的dotnet还原错误:拒绝访问路径

centos linux上的dotnet还原错误:拒绝访问路径,linux,git,.net-core,centos7,Linux,Git,.net Core,Centos7,我正在centos 7服务器上运行TFS2017/VSTS生成代理,在生成过程中收到以下错误: 2017-05-23T02:35:57.4457330Z [command]/usr/local/bin/dotnet restore ./src/DocPropsService.sln 2017-05-23T02:35:59.8903860Z Restoring packages for /myagent/_work/3/s/src/CommandService/DocProps.Command

我正在centos 7服务器上运行TFS2017/VSTS生成代理,在生成过程中收到以下错误:

2017-05-23T02:35:57.4457330Z [command]/usr/local/bin/dotnet restore ./src/DocPropsService.sln
2017-05-23T02:35:59.8903860Z   Restoring packages for /myagent/_work/3/s/src/CommandService/DocProps.CommandService/DocProps.CommandService.csproj...
2017-05-23T02:36:09.8543710Z   Generating MSBuild file /myagent/_work/3/s/src/CommandService/DocProps.CommandService/obj/DocProps.CommandService.csproj.nuget.g.props.
2017-05-23T02:36:09.8786540Z /opt/dotnet/sdk/1.0.4/NuGet.targets(97,5): error : Access to the path '/myagent/_work/3/s/src/CommandService/DocProps.CommandService/obj/23507835-d558-4207-80a0-85b919019109.tmp' is denied. [/myagent/_work/3/s/src/DocPropsService.sln]
2017-05-23T02:36:09.8812240Z /opt/dotnet/sdk/1.0.4/NuGet.targets(97,5): error :   Permission denied [/myagent/_work/3/s/src/DocPropsService.sln]
构建代理使用git将代码签出,但restore命令失败。我使用的dotnet版本是1.0.4


我对linux不是很在行,也不确定从哪里开始。任何类型的帮助都是非常有用的。

作为最后的手段,我手动从源文件夹中删除了构建和工作的所有数据。我确实不得不使用sudo强制删除这个,但它现在似乎起作用了。我不知道它是怎么进入我必须这样做的状态的