Skip to main content

 

 
Go Search
Home
Getting Started
Knowledge Base
Training
Discussions
Downloads
Platform SDK
  

 
 
VersionOne Community > Downloads > Integration Documentation > TeamFoundationServer
 

VersionOne Integration with Microsoft Team Foundation Server


Description

VersionOne's integration with Microsoft Team Foundation Server (V1TFS) provides your organization with visibility into change while freeing the development team to focus on deliverables. This integration is comprised of two parts: The TFS Listener and the VersionOne Check-in Policy.

The TFS Listener is responsible for responding to check-in and build events from TFS. For each qualifying check-in event the listener creates a "ChangeSet" in VersionOne, providing the team visibility into the code changes for a story or defect. This visibility can be useful when tracking down defects or performing code reviews. For each qualifying build event, the listener creates a "BuildRun" in VersionOne. If possible BuildRuns are associated with stories and/or defect in VersionOne , providing the organization visibility into build contents. This visibility is useful when selecting a build to release, identifying problem builds, or generating release notes.

In order for the Listener to create associations in VersionOne, the check-in comment must include a VersionOne story or defect ID, such as "S-01454". The VersionOne Check-in Policy ensures that this requirement is met. When this policy is enabled for a TFS project, each comments is scanned for a VersionOne ID. If not found, the Policy fails and prompts the user to select an ID from a dialog box. The user may select from items they own in active iterations, or from all items in active iterations.

System Requirements

  • VersionOne: 8.1 or above

  • Microsoft Team Foundation Server 2008

  • Clients

    • Visual Studio 2005

    • Visual Studio 2008

Installation

Before you can use the VersionOne VSTS integration you must perform the following actions

Install the TFS Listener

The VersionOne TFS Listener is a WebService that must be installed on a machine that has access to your VersionOne Server and your Team Foundation Server. To avoid network delays it's better if you collocate the Listener with one of the other servers. It is recommended that you install the Listener on the Team Foundation Server.

To install the TFS Listener, execute "VersionOne TFS Listener.msi" on the appropriate machine and follow the steps in the installation wizard.

Top

Configure the TFS Listener

In order for the TFS Listener to work it must know which VersionOne instance to use when creating assets and making associations and which TFS instance to use for listening to events. Configuring the TFS Listener is accomplished using the TFS Listener Configuration utility. This utility is installed, and launched, as part of the TFS Listener installation. If you need to reconfigure the TFS Listener at a later date, this utility is available from the Start menu under Programs | VersionOne TFS Listener.

The utility has 3 tabs

  1. The "VersionOne Server" tab allows you to to configure VersionOne connectivity. This configuration is required.

  2. The "TFS Server" tab allows you to subscribe to TFS Events. This configuration is required.

  3. The "Advanced" tab allows you to configure the regular expression used to match VersionOne IDs in Check-in comments. This configuration is optional since we set the default value to a working expression. We do not recommend you change this unless necessary.

Top

Install the VersionOne CheckI-in Policy

The VersionOne Check-in Policy ensures that each TFS Check-in contains a VersionOne identifier. This policy must be installed on each machine running Visual Studio There are two installers for the VersionOne Check-in policy, select the appropriate installer based on the version of Visual Studio. As with Visual Studio both versions of the policy can coexist on a single machine.

To install the VersionOne TFS Policy, run the appropriate setup msi for the version of Visual Studio being used.

Table 1.

Visual Studio Installer
2005 VersionOne TFS Policy.msi
2008 VersionOne TFS Policy 2008.msi


Top

Enable the Policy for a TFS Project

In order to be considered when performing a check-in, the VersionOne TFS Check-in policy must be enabled on a TFS project. Perform the following steps to enable the Check-in policy on a TFS Project

  1. Open Visual Studio

  2. Open the Team Explorer

  3. Right click on the desired project

  4. Select "Team Project Settings"

  5. Select "Source Control..."

  6. Select the "Check-in Policy" tab

  7. Click "Add"

  8. Select the "VersionOne Policy"

  9. Click Ok to close the "Add Check-in Policy" dialog

  10. Click Ok to close the "Source Control Settings" dialog

Top

Configure VersionOne Build Integration

In order to access TFS Build Runs in VersionOne you must configure the VersionOne application. The following steps describe how to enable build integration, create a build project, and assign that project to a project containing stories and defects.

  1. Log into the VersionOne application as admin

  2. Navigate to the Admin | Configuration | System page.

  3. Check the “Enable Build Integration” checkbox and click the Apply button.

  4. Navigate to the Admin | Projects | Build Project page

  5. Click Add to add a new Build Project

  6. Specify the following

    1. Name – this is how the Build Project will be known to VersionOne users

    2. Reference – this is the Build Project is known to the partner system

  7. Click Ok to save the new Build Project

  8. Navigate to the Admin | Projects | Projects page

  9. Click Edit on the row for the project you want associated with a Build Project

  10. Using the “Build Projects” dropdown add the appropriate Build Project.

  11. Click Ok to accept the changes

  12. Logout

Top

Verify Everything Works

Perform the following steps to verify the integration:

  1. Open a Visual Studio project that is in the selected TFS project

  2. Open a file and make a change (for instance, add a comment)

  3. Save the change

  4. Check-in the change

  5. Type a comment, but do not provide a VersionOne identifier

  6. Click "Check In"

You should be presented with the following dialog

  1. Provide the VersionOne URL and your credentials

    Note

    You may want to wait until after testing to cache credentials

  2. Click OK

You should now be presented with the following dialog, populated with information from your VersionOne Server

  1. Select an Item in VersionOne

  2. Click OK

Once the check-in completes, launch your browser and navigate to VersionOne. Login and locate the item you chose to associate with the check-in. Open this item and click in the Relationship tab. You should now see data in the following grids: Changesets, Last Affected Build Runs, and Affected Build Runs. The following screen-shot is an example:

Top

Troubleshooting tips

  • If you do not see any ChangeSet or Build relationships

    • Verify that Changesets and Build Integration are both enabled in VersionOne

    • Ensure you selected the same VersionOne Story or Defect in Visual Studio and VersionOne

    • Use the TFS Listener Configuration tool and verify that you are subscribed to TFS Events

    • Ensure that the following VersionOne URLs point to the same instance

      1. The TFS Listener URL (using the Listener Configuration utility)

      2. The URL used in Visual Studio

      3. The Browser URL

    • Navigate to the TFS Listener URL, specified in the Listener Configuration Utility, and make sure the WebService is running

    • Check the application event log on the TFS Listener machine for any TFS errors

  • If you do not see Build relationships, check the following

    • Verify that Build Integration is enabled and configured properly in VersionOne

    • Verify that a build executed when the check-in was performed. If not, or if you only build daily, you will need to force a build

    • Check the application event log on the TFS Listener machine for any TFS errors

Top

Copyright © 2008, VersionOne, Inc. All rights reserved. This document was generated 2008-08-04 14:32:37.