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)
Have you heard of Scrum.org?
pluralsight.com/training/Courses/TableOfContents/alm-for-developers 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…
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies Microsoft.TeamFoundation.TestImpact.BuildIntegration.dll Microsoft.VisualStudio.TeamFoundation.dll C:\Windows\assembly\GAC_MSIL\Microsoft.TeamFoundation.TestImpact.Client\ __b03f5f7f11d50a3a\ Microsoft.TeamFoundation.TestImpact.Client.dll C:\Program Files (x86)\Microsoft Visual Studio 11.0\ Common7\IDE\ReferenceAssemblies\v2.0 Microsoft.TeamFoundation.Build.Client.dll Microsoft.TeamFoundation.Build.Workflow.dll Microsoft.TeamFoundation.Common.dll Microsoft.TeamFoundation.VersionControl.Client.dll Microsoft.TeamFoundation.VersionControl.Common.dll Microsoft.TeamFoundation.WorkItemTracking.Client.dll Assembly Reference System.Activities.Presentation System.Drawing PresentationCore PresentationFramework WindowsBase
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, /07/01/pfcov_TFS2010-Builds.aspx
Thank you. |