我发布构建工件失败,错误:EPERM:不允许操作 [英] I get Publish build artifacts failed with error: EPERM: operation not permitted

查看:105
本文介绍了我发布构建工件失败,错误:EPERM:不允许操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


当我尝试在VSO中构建解决方案时,请帮助我解决错误。


所有步骤都可以正常执行,但在最后一步中,它会在尝试将工件发布到定义的路径时失败。


2017-08-02T10:45:53.4224145Z ## [section] Finishing :将文件复制到:$(build.artifactstagingdirectory)

2017-08-02T10:45:53.4224145Z ## [section]开始:发布工件:下降

2017- 08-02T10:45:53.4224145Z ========================================== ====================================

2017-08-02T10: 45:53.4224145Z任务         :发布Build Artifacts $ $ $ $ b 2017-08-02T10:45:53.4224145Z描述  :将构建工件发布到服务器或文件共享

2017-08-02T10:45:53.4224145Z版本      :1.120.1

2017-08-02T10:45:53.4224145Z作者       :Microsoft Corporation

2017-08-02T10:45:53.4224145Z帮助         :[更多信息](


干杯!


Chaminda


Hi,

Please help me with the error I am getting when I try to build the solution in VSO.

All steps are executed fine but in the last step it fails when it tries Publish the artifacts to a defined path.

2017-08-02T10:45:53.4224145Z ##[section]Finishing: Copy Files to: $(build.artifactstagingdirectory)
2017-08-02T10:45:53.4224145Z ##[section]Starting: Publish Artifact: drop
2017-08-02T10:45:53.4224145Z ==============================================================================
2017-08-02T10:45:53.4224145Z Task         : Publish Build Artifacts
2017-08-02T10:45:53.4224145Z Description  : Publish Build artifacts to the server or a file share
2017-08-02T10:45:53.4224145Z Version      : 1.120.1
2017-08-02T10:45:53.4224145Z Author       : Microsoft Corporation
2017-08-02T10:45:53.4224145Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkID=708390)
2017-08-02T10:45:53.4224145Z ==============================================================================
2017-08-02T10:45:53.7036757Z ##[error]Publish build artifacts failed with error: EPERM: operation not permitted, stat '\\xxxxxxxx\20170802.7'
2017-08-02T10:45:53.7193020Z ##[section]Finishing: Publish Artifact: drop
2017-08-02T10:45:53.7193020Z ##[section]Starting: Post Job Cleanup
2017-08-02T10:45:53.7193020Z ##[section]Finishing: Post Job Cleanup
2017-08-02T10:45:53.7349271Z ##[section]Finishing: Build

解决方案

Hi Sujan,

What is the build agent you are using? Is it hosted agent?

If you are using hosted agent of VSTS (former VSO) and trying to use a local network file share as the artifacts drop path, hosted agent is unable to access such paths. This is because hosted agent does not have line of sight to your local network share paths.

You can use below two options.

1. Use Artifact Type "Server" instead of "File Share" so that the artifacts get published to VSTS and will be available to download from build summary page. This works fine for hosted or on premises build agents connected to VSTS.

2. Use on premises build agent connected to VSTS and use that agent to build your solution. Make the shared path in your network accessible to the build agent (Agent running user should  have write access to shared path in your network). Configure on premise agent for VSTS explained here http://chamindac.blogspot.com/2016/05/configure-on-prem-agent-for-visual.html

Cheers!

Chaminda


这篇关于我发布构建工件失败,错误:EPERM:不允许操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆