Team Foundation Server 2012
Builds: Understand, Configure,
and Customize
Benjamin Day
Who’s this Benjamin Day guy?
• Brookline, MA
• Consultant, Coach, & Trainer
• Microsoft MVP for Visual Studio ALM
• Team Foundation Server, Software Testing, Scrum, Software Architecture
• Scrum.org Classes– Professional Scrum Developer (PSD)
– Professional Scrum Foundations (PSF)
• www.benday.com, [email protected], @benday
Have you heard of
Scrum.org?
http://www.pluralsight.com/training/Courses/TableOfContents/alm-fundamentals
http://pluralsight.com/training/Courses/TableOfContents/alm-for-developers
Agenda
• Why automated builds?
• Tour of the build system
• Build servers
• Tour of the build script
• Customize your build script
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
Assumption:
local, non-Azure build.
Build Features
• Windows Workflow-based build script
• Gated Check-in builds
• Lab Management builds
• Build server “tagging”
DEMO 1:
THE GRAND TOUR
Build 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 CHECK-IN BUILDS
DEMO 3: TOUR OF THE
BUILD SCRIPT
SO…YOU WANT TO
CUSTOMIZE YOUR BUILD.
Why customize?
• Environment specific configurations
• IIS configuration
• Custom setup commands
• Basically, you can deploy your app.
Create a project to
customize the build 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 build script
For future reference, here are the
references…
DEMO 4: CUSTOM BUILD
SCRIPT
DEMO 5: CUSTOM BUILD
WORKFLOW ACTIVITIES
Agenda
• Why automated builds?
• Tour of the build system
• Build servers
• Tour of the build script
• Customize your build script
More Information
• “Levels of TFS Build Automation”, Visual
Studio Magazine, July 2011,
http://visualstudiomagazine.com/Articles/
2011/07/01/pfcov_TFS2010-Builds.aspx
Thank you.
http://www.benday.com | [email protected]