“拒绝访问路径”当内容在新TFS 2015 vNext构建中具有其他项目时使用“发布工件”构建步骤时
我不断获得"拒绝访问路径"。每当我在"发布工件"构建步骤的"内容"设置中指定其他项目时出现错误。在Publish Artifact任务的UploadArtifact步骤期间发生错误。
I keep getting a "Access to the path is denied." error whenever I specify additional items in the Contents setting on the Publish Artifact build step. The error occurs during the UploadArtifact step of the Publish Artifact task.
这是我的设置:
- 使用Visual Studio从TFS 2015构建模板vNext构建模板
- 选择适当的存储库路径
- 更改发布构建工件的内容字段以添加** \ * .aspx
- 构建帐户具有服务器的管理员权限
以下是输出:
******************************************************************************
Starting task: Publish Artifact: drop
******************************************************************************
Executing the powershell script: E:\TfsBuildAgent\tasks\PublishBuildArtifacts\1.0.4\PublishBuildArtifacts.ps1
Preparing artifact content in staging folder E:\TfsBuildAgent\_work\01f07279\artifacts...
Copying all files from E:\TfsBuildAgent\_work\01f07279\MyStuff\bin to E:\TfsBuildAgent\_work\01f07279\artifacts\drop\bin
Copying all files from E:\TfsBuildAgent\_work\01f07279\MyStuff\Default.aspx to E:\TfsBuildAgent\_work\01f07279\artifacts\drop\Default.aspx
<cut>
Max Concurrent Uploads 8, Max Creators 2
Found 37 files to upload.
Start: UploadArtifact
Access to the path 'E:\TfsBuildAgent\_work\01f07279\artifacts\drop\Default.aspx' is denied.
End: UploadArtifact
任何想法?
嗨Bebo,
感谢您的帖子。
"附加项目"是什么意思? "附加项目"属于另一个团队项目?
What’s the "additional items" mean? The "additional items" belong to another team project?
在您的VSO代理机器上,尝试访问此'E:\ TfsBuildAgent \_work \使用您的VSO代理服务帐户01f07279\artifacts\drop \Default.aspx'
文件,确保可以成功找到并访问此文件。
On your VSO agent machine, try access this 'E:\TfsBuildAgent\_work\01f07279\artifacts\drop\Default.aspx' file using your VSO agent service account, ensure this file can be found and accessed successfully.