Thursday, September 9, 2010

TFS 2010 : What we cannot copy a build definition !!

UPDATE : Yes we can ... now with the latest TFS PowerTools (Clone Build Definition) :
http://blogs.msdn.com/b/bharry/archive/2010/09/09/sept-2010-tfs-power-tools-release-available.aspx

What !!! After having spent many hours in configuring the best ever unbreakable build with the TFS's Gated Checkin, with lots of Unit tests, Code Coverage options, a nice deployments..., you're telling me that TFS 2010 does not provide any function to copy or backup my Build Definition ???
Because, a very basic modification of the Build Definition done by mistake can breakdown everything !

Well, sorry, there's no such option with Team Explorer. However, here is a way to overcome this missing feature : To copy a build definition, you have to create your own application via the TFS API :


TeamFoundationServer tfs = TeamFoundationServerFactory.GetServer("http://myTFSserver:8080");

as explained here :
http://www.brokenwire.net/bw/Programming/122/how-to-copy-tfs-builddefinitions

NB: Talking about automated Unit Test and Test impact, here is a nice post to explain whar Test impacts are :
http://blogs.msdn.com/b/phuene/archive/2009/12/09/test-impact-with-team-foundation-build-2010.aspx

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.