TFS 用户需要更新构建信息的权限 [英] TFS User needs permission to update build information

查看:27
本文介绍了TFS 用户需要更新构建信息的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

就像我在

此用户在构建权限对话框中获得了正确的权限设置,我也在 tfs 本身的管理命令行中设置了它

C:\Program Files\Microsoft Team Foundation Server 14.0\Tools\tfssecurity/a+ Build ProjectName UpdateBuildInformation n:ourDomain\bob ALLOW/collection:http://tfs-test:8080/tfs/Test

ToyStory 是测试项目的名称.

最后但并非最不重要的一点:Bob 是一个服务帐户.

收到这些消息后,我还缺少什么?VsoAgent.exe 以 Bob 的身份在我们的 BuildMashine 上作为服务运行,并且确保我重新启动了所有内容几次.我们正在进行 TFS 2015U1 和 Windows Server 2008 R2 的所有最新更新.所有企业许可证.今天日期:22.03.2016

更新:现在我在 TFS 的新 R2 上,我仍然不知道为什么这不起作用.此外,仍然没有适当的 REST 函数来将绑定的工作项设置为该构建

解决方案

您似乎正在尝试更新 TFS API 不完全支持的 vNext 版本.TFS API 旨在与 XAML 构建一起使用.因此,如果您将其与 vNext 构建一起使用,您可能会看到一些意想不到的问题.

要将工作项附加到构建,您需要更新工作项中的信息.将构建链接添加到工作项并指定构建号.在此之后,您将在构建摘要中看到相关的工作项.你可以使用这个 API:添加一个链接.

Like I already asked in Visual Studio Forum, I wrote an application that binds work items to builds based on svn logs. When I try to hit buildDetail.Information.Save(); I get the Exception User (Bob) needs permission to update build information.

This user got the right permission set in the build permission dialog and I also set it in the admin command line on the tfs itself

C:\Program Files\Microsoft Team Foundation Server 14.0\Tools\tfssecurity /a+ Build ProjectName UpdateBuildInformation n:ourDomain\bob ALLOW /collection:http://tfs-test:8080/tfs/Test

ToyStory is the name of the test project.

Last but not least: Bob is a Service Account.

What am I still missing that I get these messages? The VsoAgent.exe is running as Service on our BuildMashine as Bob and sure I restartet everything a couple of times. We are on all last updates for TFS 2015U1 and Windows Server 2008 R2. All Enterprise licenses. Date today: 22.03.2016

Update: Now I'm on the new R2 for TFS and I have still no clue why this is not working. Also there is still no proper REST function to set bound work items to that build

解决方案

It seems that you are trying to update a vNext build which is not fully supported by TFS API. The TFS API is designed to use with XAML build. So if you use it with vNext build, you may see some unexpected issues.

To attach a workitem to a build, you need to do update the information from workitem. Add a build link to the workitem and specify the build number. After this, you will see the associated work items in the build summary. You could use this API: Add a link.

这篇关于TFS 用户需要更新构建信息的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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