Mathias Olausson [MVP] :: thoughts on Visual Studio ALM

Clone a Build Definition

In the September update of the TFS Power Tools a very handy feature for managing TFS build definitions was introduced. This feature saves time and reduces the risk for errors when managing build definitions. To clone a build definition all you need to do is to right-click on the source build definition in the Team Explorer and choose “Clone Build Definition”.

After you have cloned the build definition there are some things that needs to be fixed however:

  1. Clone build definition.
  2. Disable build definition to prevent accidental triggering.
  3. Rename the build definition.
  4. Change workspace mapping to new location (if needed).
  5. Change drop location (if needed).
  6. Change the process to point to the right projects/solutions (if needed).
  7. Enable the build definition.

Screenshots below to illustrate the process:

1. Clone build definition.

image

image

2. Disable build definition to prevent accidental triggering. Rename the build definition.

 image

3. Change workspace mapping to new location (if needed).

image

4. Change drop location (if needed).

image

5. Change the process to point to the right projects/solutions (if needed).

image

6. Enable the build definition.

Comments

Peeyush said:

Hi,

Could it be done using command Line?

Thanks in advance

Peeyush Sodhia

9742742930

# November 18, 2010 10:06 AM

Mathias Olausson said:

The TFS team just released an updated version of the essential TFS power tools. In this version I think

# March 7, 2011 9:13 AM

Canadian Solution Developers' Blog said:

  In this post, we’re continuing our One on One with Visual Studio conversation from March 13 with

# March 24, 2011 9:34 PM