更新许多TFS项目的构建定义

编程入门 行业动态 更新时间:2024-10-19 21:33:24
本文介绍了更新许多TFS项目的构建定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我们正在将TFS服务器场升级到TFS2012。为此,我们已使用TFS安装程序中的升级路径设置了新的构建服务器。但是,我们新的构建控制器的名称为TFS2012Build,而旧的是TFSBuild。

We're upgrading our TFS farm to TFS 2012. In doing so, we've set up a new build server using the upgrade path in TFS Setup. However our new build controller has the name TFS2012Build, whereas the old one was TFSBuild.

现在,我有数百个具有无效构建控制器的构建定义。有没有一种方法可以自动或通过脚本更新构建控制器?

Now I have many hundreds of build definitions that have an invalid build controller. Is there a way to update the build controller automatically or by script?

推荐答案

我不知道执行此操作的任何自动方法。可以很容易地通过API来获取构建定义,并且可以使用BuildController。

I am unaware of any "automatic" methodology to do this. It is easy enough to get to the build definitions via the API, and the BuildController is available.

在缺乏完善的TFS API文档的情况下,有很多示例可用于API。一个简单的Google搜索就会发现这些内容。

in the absence of decent TFS API documentation, there are many that have examples available for use of the API. A simple google search will reveal these.

一些帮助您开始工作的建议: msdn.microsoft/en-us/library/microsoft.teamfoundation.build.client。 ibuilddefinition.aspx

A few suggestions to help kick start your effort: msdn.microsoft/en-us/library/microsoft.teamfoundation.build.client.ibuilddefinition.aspx

一个好的示例应用程序在这里: blogs.microsoft.co.il/blogs/ shair / archive / 2011/01/11 / tfs-api-part-33-get-build-definitions-and-build-details.aspx

A good sample app is here: blogs.microsoft.co.il/blogs/shair/archive/2011/01/11/tfs-api-part-33-get-build-definitions-and-build-details.aspx

最后,这里有不错的代码可以编辑构建定义,并且可能是您更好的起点: geekswithblogs/jakob/archive/2009/12/08/tfs-2010-ndash-managing-build-ag ents-using-the-api.aspx

Finally, there is good code here that edits build definitions, and may be a better starting point for you: geekswithblogs/jakob/archive/2009/12/08/tfs-2010-ndash-managing-build-agents-using-the-api.aspx

祝你好运。

更多推荐

更新许多TFS项目的构建定义

本文发布于:2023-11-27 21:51:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1639727.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:定义   项目   TFS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!