使用凭据将构建工件发布到文件服务器

问题描述:

这是我第一次使用TFS 2017版本管理。我喜欢做的是:在TFS上完成构建之后,我想将* .exe
文件从TFS服务器复制/移动到另一个文件服务器,如
\\ MyFileServer\foo \   with
"Publish Build Artifacts"-Task。但要访问文件服务器,它需要我的凭据。那么如何告诉TFS我的凭据将文件移动到该外部服务器?我读了一些关于变量的内容,但是没有选项可以将
变量/凭证设置为"发布构建工件"-Task。"

您好xWeST,

Hi xWeST,

感谢您在此发帖。

您使用的Build Service帐户无权编写导致您的问题的共享文件夹。您可以更改共享文件夹的属性。

The Build Service Account you used didn't have permission to write shared folder causing your issue. You could change the shared folder’s property.

您使用了哪个构建服务帐户?如果是特定用户,请在"共享"选项卡中单击"共享",然后使用"读/写"权限添加此用户。

Which Build Service Account did you use? If it is a specific user, in Sharing tab click share, then add this user with "Read/Write" permission.

如果是网络服务,请在共享选项卡中单击共享,然后添加具有"读/写"权限的所有人。

If it is Network Service, in Sharing tab click share, then add Everyone with "Read/Write" permission.

最好的问候