team foundation server 2010 builds: understand, configure, and customize benjamin day benday.com |...

18
Team Foundation Server 2010 Builds: Understand, Configure, and Customize Benjamin Day Benjamin Day benday.com | blog.benday.com @benday

Post on 19-Dec-2015

217 views

Category:

Documents


0 download

TRANSCRIPT

Team Foundation Server 2010 Builds: Understand, Configure,

and Customize

Team Foundation Server 2010 Builds: Understand, Configure,

and CustomizeBenjamin DayBenjamin Day

benday.com | blog.benday.com@benday

Introductions: Benjamin DayIntroductions: Benjamin Day• Consultant, Coach, Trainer• Scrum.org Classes

• Professional Scrum Developer (PSD)

• Professional Scrum Foundations (PSF)

• TechEd, VSLive, DevTeach, O’Reilly OSCON• Visual Studio Magazine, Redmond Developer News• Microsoft MVP for Visual Studio ALM• Team Foundation Server, TDD, Testing Best Practices,

Silverlight, Windows Azure• http://blog.benday.com• [email protected]

AgendaAgenda

• Why automated builds?• Tour of the build system• Build servers• Tour of the build script• Customize your build script

Why automated builds?Why automated builds?

• Helps prevent the “works on my box” problem

• Proves you know how to build your app• Gives you a solid way to version releases• Makes integration second nature

TFS 2010: New Build FeaturesTFS 2010: New Build Features

• Windows Workflow-based build script• Gated Checkin builds• Lab Management builds• New build server architecture

DEMO 1: DEMO 1: THE GRAND TOURTHE GRAND TOUR

Build Controllers & AgentsBuild Controllers & Agents

• Controller• Coordinates builds for a Team Project Collection

(TPC)

• Assigns work to Agents

• Agent(s)• 1+ agent per controller

• Use “Tags” to define capabilities of each Agent

DEMO 2: GATED CHECKIN DEMO 2: GATED CHECKIN BUILDSBUILDS

DEMO 3: TOUR OF THE DEMO 3: TOUR OF THE BUILD SCRIPTBUILD SCRIPT

SO…YOU WANT TO SO…YOU WANT TO CUSTOMIZE YOUR BUILDCUSTOMIZE YOUR BUILD

Why customize?Why customize?

• Environment specific configurations• IIS configuration• Custom setup commands

• Basically, deploy your app.

Create a project to customize the Create a project to customize the build scriptbuild script

• Compile time checking

• Create a Windows Workflow project• Add references to the required TFS

assemblies• Add references to any other build

assemblies

Create a project to customize the Create a project to customize the build scriptbuild script

DEMO 4: CUSTOM BUILD DEMO 4: CUSTOM BUILD SCRIPTSCRIPT

DEMO 5: CUSTOM BUILD DEMO 5: CUSTOM BUILD WORKFLOW ACTIVITIESWORKFLOW ACTIVITIES

AgendaAgenda

• Why automated builds?• Tour of the build system• Build servers• Tour of the build script• Customize your build script

More InformationMore Information

• “Levels of TFS Build Automation”, Visual Studio Magazine, July 2011, http://visualstudiomagazine.com/Articles/2011/07/01/pfcov_TFS2010-Builds.aspx

Thank Thank you.you.

blog.benday.com | www.benday.com | [email protected]