-
On the Build menu, select New Team Build Type, the New Team Build Type Creation Wizard displays.
-
In the New Team Build Type Creation Wizard, specify the name to associate with the build type in the What do you want to name this team build type text box.
Note |
|---|
| A validation is made to check if the name entered already exists for an established build type. If the name exists, you are prompted to enter a unique name. The build type name must be a valid Windows filename and cannot contain $. |
Add an appropriate description in the Description text box and click Next to proceed, the Select and order solutions to build step displays.
Tip |
|---|
| The Next button is only enabled when all mandatory fields are properly completed. |
-
In the drop-down list box below From which workspace would you like to select solutions to build, select the workspace containing the solutions that you wish to include in the build type. The drop-down option shows the workspace name and the user who created it.
-
In the Select and order solutions listing, check the solution or solutions that you want to add to the build type.
-
Select the solutions and change their location in the build order using the arrow buttons to the right of the list. Solutions are built in order, starting at the top of the list.
Tip |
|---|
| Be aware of one solution having dependencies on another when determining the order in which they are built. For example, set Solution1 to be built before Solution2 in the case where Solution2 has a dependency on Solution1. |
-
When you are satisfied with the solutions that you have selected and the order in which they are specified to build, click Next, the Select configurations to build step displays.
-
In the grid under Which project configurations would you like to build, select the desired configuration and platforms to include in the build. The build configuration indicates the configuration and platform desired (for example, Retail and AnyCPU).
-
When you are satisfied with the build configuration selections, click Next, the Select build location step displays.
-
In the text box for On which machine would you like to build, type the machine name, for example MachineA_Lab1.
-
In the text box for Build directory on selected machine, enter the directory where you want the build to take place. This is a local directory on the build machine. For example, D:\AdventureWorks\TourPackageServices\.
Note |
|---|
| When selecting the build directory, ensure that there is enough space to build, insufficient space will lead to failed builds. |
-
In the text box for Drop Location, either type in the UNC (\\server\share) location. The drop location is where the built binaries and log files will be located once the build completes.
Caution |
|---|
| By default, the drop directory is not automatically created as a share and therefore is not accessible for publishing builds and tests results. You must manually establish a share, add write permissions to the Windows directory, and add share permissions for both the account used to run Team Foundation Build service for dropping builds and for the tester's account for publishing test results. |
Note |
|---|
| Each generated build will be dropped into a separate directory. You will need to ensure that the account with which build machine is configured has write access to this UNC location. |
-
When you are satisfied with the build location settings, click Next, the Select Build Options step displays.
-
Indicate the build options that you want to enable by clicking the Run test (e.g. run BVTs, etc.) and Perform code analysis check boxes as appropriate. If the Run test (e.g. run BVTs, etc.) check box is selected, use the drop-down options to specify the Test metadata file and Test list to run as appropriate. For more information, see Using Test Lists and Writing Quality Code.
-
When you are satisfied with the build steps, click Next, the Review Build Type selections step displays.
-
If you are satisfied with the build type, click Finish, the new build type creates the underlying files. The files created are:
-
TfsBuild.proj
-
WorkspaceMapping.xml
These files are checked into Team Foundation source control under the folder with the same name as "build type." For example, if you create a build type named "myBuildType," in Team Foundation source control, the files get stored at $/[Team Project Name]/TeamBuildType/myBuildType.
Note |
|---|
| If you want to further edit the build type, you will need to edit the TfsBuild.proj file. |
With the Build Type Wizard steps completed, you must now ensure that the Team Foundation Build Service on the selected build machine has the required permissions to build this team project. You must also give the proper permissions to users who will run the build type. Establishing these permissions is discussed in the following procedure.