更新许多TFS项目的构建定义 [英] Updating the build definition for many TFS projects

查看:58
本文介绍了更新许多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.

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

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

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

最后,这里有不错的代码可以编辑构建定义,并且可能是您更好的起点: http://geekswithblogs.net/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: http://geekswithblogs.net/jakob/archive/2009/12/08/tfs-2010-ndash-managing-build-agents-using-the-api.aspx

祝你好运。

这篇关于更新许多TFS项目的构建定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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