Rename a TFS Project Collection

Rename a TFS Project Collection

I was asked the other day how to rename a Team 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

Accept the User Access Control if shown

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

5. This will invoke the detach wizard

a) Add a servicing message, and click next

b) Click on Verify

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

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.

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

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

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

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

Back in the TFS Admin console, click on Attach Collection

9. This opens the attach wizard

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

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

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

d) If everything is OK, click Attach

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

View the complete results, and click close

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

时间: 2024-10-27 09:26:25

Rename a TFS Project Collection的相关文章

Visual Studio 启动修复命令

今天VS启动不了了,连命令行的 devenv.exe /? 都执行不了,看不到帮助命令了,记性不好,以前看过但没记住呀,还好我装了两个不同版本的VS, 另一个VS的帮助命令还是可以看到的.虽然修复了,还是把帮助命令备忘一下,下次就不会措手不及了,有用的人需要也可以借鉴一下,最有可能出现问题的是插件引起的问题,安全模式最有用,几乎都可以启动: Use: devenv [solutionfile | projectfile | anyfile.ext] [switches] The first ar

对数据集“dsArea”执行查询失败。 (rsErrorExecutingCommand),Query execution failed for dataset 'dsArea'. (rsErrorExecutingCommand),Manually process the TFS data warehouse and analysis services cube

错误提示: 处理报表时出错. (rsProcessingAborted)对数据集“dsArea”执行查询失败. (rsErrorExecutingCommand)Team System 多维数据集或者不存在,或者未经处理. 解决方法: Manually process the TFS data warehouse and analysis services cube When you need the freshest data in your reports, when errors have

TFS 2015 Build Agent failing syncing the repository 获取源码 不全 失败

当我们使用TFS2015d的生成代理时,我们将生成定义加入代理池队列中,但是代理可能无法完全下载我们在TFS代码浏览器中看到的所有目录,这肯定会导致编译失败呀!为什么呢? 原因在于tfscompile这个账号在某个项目的版本控制中,对某个源码目录没有权限 但是不可能啊,我们已经在根节点上给了权限了呀, 是的,你的确给了根目录所有权限,但是仔细观察你会发现,有个关于继承的隐藏开关 如果某个目录勾选了“关闭”,那么这个目录对TFSCOMPILE账号就无权访问,当然生成代理就无法下载咯. 因此,我们还

In-Place upgrade to Team Foundation Server (TFS) 2015 from TFS 2013Team Foundation Server TFS TFS 2015 TFS upgrade TFS with Sharepoint

This upgrade document gives detailed step by step procedure for the In-Place upgrade from TFS 2013 to 2015 RTM with Reporting and SharePoint. Environment Details: TFS 2013 environment Windows server 2012 R2, TFS 2013 update 5, SQL 2014 SP1, SharePoin

tfs witadmin

有时候对TFS的操作需要使用命令行,因为无图形界面进行操作. 我们可以进入Visual Studio Tools使用Developer Command Prompt进行操作. 使用命令 witadmin /? 可以查看到所有参数 The following is the list of commands that are available. Type 'witadmin [command] /?' or 'witadmin help [command]' and press Enter to

TFS 10周年生日快乐 – TFS与布莱恩大叔的故事

今天看了一下Brian Harry大叔的博客,才发现2016年3月17日,是Team Foundation Server的10岁生日. Today marks the 10th anniversary of the day we shipped the first version of TFS – TFS 2005. It doesn’t seem that long ago but we sure have come a long way. The other day I recorded a

TFS扩展开发中遇到的坑

本码农最近开发一个VS扩展,其中有些功能涉及到文件的签出.我们公司用的是TFS,遇到了一些奇特的现象,将解决过程记录如下. 一.明明在线的连接却Offline属性等于True public static Workspace GetWorkspace(string slnDir) { var projectCollections = new List<RegisteredProjectCollection>((RegisteredTfsConnections.GetProjectCollecti

How to fix TFS workspace mapping error in Jenkins

Once you had update in TFS workspace for Jenkin TFS plugin, you might get error like bellow: [workspace] $ "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\TF.exe" workspaces -format:brief -server:http://tfs.xxx.com:8080/tfs/Defa

清除TFS版本控制信息

http://blog.csdn.net/feihu_guest/article/details/8442434 How to permanently remove TFS Source Control association bindings? Ihave faced this issue when I decided to move one of my freelance project frommy own TFS toCodePlex.To re-assign to a new Sour