Tfs 2010:为什么我的构建帐户明确拒绝所有权限?
我正在设置 tfs 2010 的新部署。我有几个要在解决方案中构建的存根项目,并且我正在尝试在其上配置持续集成构建。因此,我使用所有默认值配置了一个构建,并开始了它。我收到此错误:
TF215097:初始化构建定义 \Ticm\Ticm.CI 的构建时发生错误:在版本 T 的源代码管理中找不到项目 $/Ticm/BuildProcessTemplates/DefaultTemplate.xaml。
我有点困惑,因为它就在源代码管理中。出于某种原因,我认为它可能会离开我的工作区(并且因为我认为将构建模板绑定到他们正在构建的分支是一个很好的做法),我将 BuildProcessTemplates 移动到我的主分支中,并在相邻的文件夹。
TF215097:初始化构建定义 \Ticm\Ticm.CI 的构建时发生错误:在版本 T 的源代码管理中找不到项目 $/Ticm/main/build/templates/customBuilds/Ticm.CI.xaml。
这本质上是同一件事。
在构建定义中,我将“工作文件夹”中的构建代理文件夹保留为默认的“$(SourceDir)”。这需要明确设置还是什么? 有人以前见过这个吗?知道下一步该去哪里吗?
编辑:经过更多调查,似乎我的 TfsBuild 帐户已被明确拒绝该项目的每一项权限。我真的不知道这是怎么发生的。然而,我在实验室管理中使用了用户的构建帐户(它描述了使用构建和测试服务),所以也许它被添加到那里,以便实验室不能搞乱源代码控制或其他东西?
我想听听在 tfs 2010 中使用实验室管理的任何人的意见,看看他们的服务帐户是否也被拒绝所有这些权限;也许我只需要创建另一个域帐户并使用该帐户即可。
I'm setting up a new deployment of tfs 2010. I've got a couple stub projects to be built sitting inside a solution, and I'm attempting to configure a continuous integration build on it. So, I configured a build with all the defaults, and kicked it off. I got this error:
TF215097: An error occurred while initializing a build for build definition \Ticm\Ticm.CI: Item $/Ticm/BuildProcessTemplates/DefaultTemplate.xaml was not found in source control at version T.
I was sort of confused, because it sitting was right there in source control. Thinking for some reason it might be going off of my workspace (and because I think it's good practice to bind build templates to the branch they're building anyway) I moved BuildProcessTemplates inside my main branch, and created a custom CI build template in an adjacent folder.
TF215097: An error occurred while initializing a build for build definition \Ticm\Ticm.CI: Item $/Ticm/main/build/templates/customBuilds/Ticm.CI.xaml was not found in source control at version T.
Which is essentially the same thing.
In the build definition, I left the Build Agent Folder in "Working folders" as the default "$(SourceDir)". Does this need to be explicitly set or anything?
Anyone seen this before? Any idea where to look next?
Edit: After some more investigation, it seems that my TfsBuild account has been explicitly denied every single permission for this project. I don't really know how this happened. I used the build account for the user in Lab Management however (it described using a build and test service) so perhaps it was added in there so that the lab can't mess up source control or something?
I'd like to hear from anyone using Lab Management in tfs 2010 to see if their service account is also denied all these permissions; perhaps I just need to make another domain account and use that one instead.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
原来我误读了实验室管理的配置信息。提供服务帐户时,信息显示“此服务帐户将由测试和构建代理使用...”但是,请阅读发布的信息 这里 似乎明确不要使用受信任的帐户,例如构建帐户、测试帐户。也许是因为像我的问题这样的事情可能会发生!
哈。这个故事的寓意是:RTFM 更加紧密。
Turns out that I misread the configuration information for Lab Management. When supplying the service account, the information reads "This service account will be used by test and build agents..." However reading the information posted here it seems that trusted accounts such as build accounts, test accounts are explicitly not to be used. Perhaps because things like my problem can result!
Ha. Moral of the story: RTFM more closely.