码迷,mamicode.com
首页 > 其他好文 > 详细

Rename a TFS Project Collection

时间:2014-06-13 13:39:13      阅读:537      评论:0      收藏:0      [点我收藏+]

标签:style   class   blog   http   tar   ext   

Rename a TFS Project Collection

There is a way, and it is more like a three card shuffle than anything else, and will work in TFS2010 and TFS2012.

The super quick guide: You detach the collection, and rename it on the reattach.

 

The step by step guide

1. Notify all the users and agree a time to do this, allocate at least half an hour to have breathing space.

You need to ensure that there are no builds or tests running, and have enough time to reset the build and test controllers and agents to point to the renamed collection. This is also assuming that you are going to keep the collection on the same SQL instance. so don’t need to consider the move from Enterprise to Standard edition (compression).

2.  Log on to the server locally

3. Open the Team Foundation Server Administration Console

bubuko.com,布布扣

Accept the User Access Control if shown

bubuko.com,布布扣

4. In the console

a) Click on Team Project Collections

b) Click on the Team Project that you want to rename

c) Detach the collection

Note: The collection will get stopped and a servicing message will get displayed in the detach operation

bubuko.com,布布扣

5. This will invoke the detach wizard

a) Add a servicing message, and click next

bubuko.com,布布扣

b) Click on Verify

bubuko.com,布布扣

c) Click on Detach, after reviewing and accepting any warnings!

bubuko.com,布布扣

The warnings in this case were:

This collection has SQL Enterprise features enabled. If you are moving the collection across SQL Server Editions please read the documentation (http://go.microsoft.com/fwlink/?LinkId=166007) to see how this impacts you. Some build resources are enabled. If any builds are running during the servicing operation, they will be stopped by the system.

 

6. This has detached the Team Project Collection. It will not appear in the administration console, and you will not be able to access it.

bubuko.com,布布扣

The Build warnings were the disabling of the controller and the agent.

bubuko.com,布布扣

bubuko.com,布布扣

7. This is an opportunity to rename the database to keep consistency. I recommend it, as it will keep the naming convention.

Open SQL Server Management Studio

Right click on the Team Project Collection database that you want to change, and click on rename

bubuko.com,布布扣

Enter the new name and click Enter. By default the database name starts with TFS_, after that is the TPC name

bubuko.com,布布扣

8. Now the TPC can be re-attached, with rename

Back in the TFS Admin console, click on Attach Collection

bubuko.com,布布扣

9. This opens the attach wizard

a) Select the database for the Team Project Collection that you want to reattach, click Next

bubuko.com,布布扣

b) Now we are the place that we have been working towards – renaming the Team project Collection. Enter the new name, (that should match the database) click Next

bubuko.com,布布扣

c) Check what has been entered, and if it is OK click Verify

bubuko.com,布布扣

d) If everything is OK, click Attach

bubuko.com,布布扣

e) Click Complete to see the summary (or click close to exit)

bubuko.com,布布扣

View the complete results, and click close

bubuko.com,布布扣

9) Now it is tidy up time

a) Repoint all Build controllers and agents to the newly named Team Project Collection

b) Repoint all Test controllers and agents to the newly named Team Project Collection

c) Confirm Connectivity

d) Run a test build and test run

10) You are done – go and grab a coffee before the next task!

 

http://blog.accentient.com/rename-a-tfs-project-collection/

Rename a TFS Project Collection,布布扣,bubuko.com

Rename a TFS Project Collection

标签:style   class   blog   http   tar   ext   

原文地址:http://www.cnblogs.com/vivianlou/p/3771976.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!