OpenMake Meister

Configuring Microsoft Team Build

 

Table MTB-1 provides the steps for configuring Team Build using a new Build Definition file.  Table MTB-2 provides the steps for configuring Team Build using an existing Build Definition file.

 

MTB-1 Configuring Team Build Using a New Build Definition File

Step

Action

1

Add a new Build Definition in Visual Studio by clicking on "Build" -> "New Build Definition" or right-clicking on "Builds" in the Team Explorer and selecting "New Build Definition"

 

2

Complete each item in the Build Definition wizard. NOTE: When in the "Project File" section of the Build Definition click on the "Create..." button to have the Build Definition project file created by the wizard.

 

3

Check the newly created MSBuild project file into Team Foundation Server

 

4

Navigate to the Team Build project file in the Source Control Explorer, right-click and select "Check Out for Edit..."

5

Add the line the following line which imports the custom OpenMake MSBuild Targets as follows:

 <Import Project="$(MSBuildExtensionsPath)\OpenMake\v7\OpenMake.Build.Workflow.targets" />

 

 

6

Add an ItemGroup for the Workflow that the MSBuild project file will execute as follows:

 

  <ItemGroup>

    <WorkFlow Include="[workflow_name]">

      <ProjectEnvironmentString> </ProjectEnvironmentString>

    </WorkFlow>

  </ItemGroup>

  Example:

  <ItemGroup>

    <WorkFlow Include="MORTGAGE PAYMENT - JAVA CLIENT">

      <ProjectEnvironmentString> </ProjectEnvironmentString>

    </WorkFlow>

  </ItemGroup>

 

7

Optional: Add an Item Group for environment variables to pass into the Workflow as follows:

 

  <ItemGroup>

    <Machine Include="[machine_name]">

      <MachineEnvironmentString>[key=value]</MachineEnvironmentString>

    </Machine>

  </ItemGroup>

 

  Example:

 

  <ItemGroup>

    <Machine Include="linux_build_server1">

      <MachineEnvironmentString>

        JAVA_HOME=/usr/java/j2sdk_1.4.2_16</MachineEnvironmentString>

    </Machine>

  </ItemGroup

8

Save the MSBuild project file and check in to Team Foundation Server.

 

 

MTB-2 Configuring Team Build Using an Existing Build Definition File

Step

Action

1

Navigate to the Team Build project file in the Source Control Explorer, right-click and select "Check Out for Edit..."

2

Add the line the following line which imports the custom OpenMake MSBuild Targets as follows:

 <Import Project="$(MSBuildExtensionsPath)\OpenMake\v7\OpenMake.Build.Workflow.targets" />

 

 

3

Add an ItemGroup for the Workflow that the MSBuild project file will execute as follows:

 

  <ItemGroup>

    <WorkFlow Include="[workflow_name]">

      <ProjectEnvironmentString> </ProjectEnvironmentString>

    </WorkFlow>

  </ItemGroup>

  Example:

  <ItemGroup>

    <WorkFlow Include="MORTGAGE PAYMENT - JAVA CLIENT">

      <ProjectEnvironmentString> </ProjectEnvironmentString>

    </WorkFlow>

  </ItemGroup>

 

4

Optional: Add an Item Group for environment variables to pass into the Workflow as follows:

 

  <ItemGroup>

    <Machine Include="[machine_name]">

      <MachineEnvironmentString>[key=value]</MachineEnvironmentString>

    </Machine>

  </ItemGroup>

 

  Example:

 

  <ItemGroup>

    <Machine Include="linux_build_server1">

      <MachineEnvironmentString>

        JAVA_HOME=/usr/java/j2sdk_1.4.2_16</MachineEnvironmentString>

    </Machine>

  </ItemGroup

5

Save the MSBuild project file and check in to Team Foundation Server.