26.04.2015 Views

Team Development with Visual Studio Team Foundation Server

Team Development with Visual Studio Team Foundation Server

Team Development with Visual Studio Team Foundation Server

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

How To: Set Up a Continuous Integration Build in <strong>Visual</strong><br />

<strong>Studio</strong> <strong>Team</strong> <strong>Foundation</strong> <strong>Server</strong><br />

Applies To<br />

• Microsoft® <strong>Visual</strong> <strong>Studio</strong>® 2005 <strong>Team</strong> <strong>Foundation</strong> <strong>Server</strong> (TFS)<br />

• Microsoft <strong>Visual</strong> <strong>Studio</strong> <strong>Team</strong> System (VSTS)<br />

Summary<br />

Although <strong>Visual</strong> <strong>Studio</strong> 2005 <strong>Team</strong> <strong>Foundation</strong> <strong>Server</strong> does not provide a Continuous<br />

Integration (CI) solution out of box, it does provide a framework on which you can build<br />

your own CI build solution. This How To article walks you through the process of setting<br />

up a CI build <strong>with</strong> TFS by using the solution provided by the VSTS team. This solution<br />

installs a Web service running under the account that has access to the TFS server. When<br />

you register the Web service for the CheckinEvent event, the Web service will initiate a<br />

team build whenever a check-in occurs.<br />

Contents<br />

• Objectives<br />

• Overview<br />

• Summary of Steps<br />

• Before You Begin<br />

• Step 1 – Create and Test Your Build<br />

• Step 2 – Install the Continuous Integration Solution<br />

• Step 3 – Configure the Continuous Integration Solution<br />

• Step 4 – Register for the CheckinEvent Event<br />

• Step 5 – Test the Continuous Integration Build<br />

• Step 6 – Set Up E-mail Alerts<br />

• Additional Resources<br />

Objectives<br />

• Learn what a Continuous Integration build is<br />

• Create a CI build by using TFSBuild and the VSTS team’s CI solution.<br />

Overview<br />

An important mechanism for improving code quality is to give developers continuous<br />

feedback regarding the quality of the check-ins they make. This is especially important<br />

for check-in that causes a build break resulting in compilation errors. The earlier the<br />

developer receives feedback, the sooner they can fix any errors in the code, thus<br />

unblocking other developers/testers and improving all team members’ productivity.<br />

This is where the Continuous Integration build type—the process of creating builds<br />

whenever a developer checks code into source control—becomes valuable. The

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!