Build vNext in VSO and TFS 2015 Richard Banks DEV341
Why?
Common questions… How do I run a script after I build the solution? Can I integrate with XYZ? Can I build Android or iOS? Why do I need a current VS to edit a build definition?
Common questions… Where’s the raw build log? How do I integrate test and coverage results? OMGWTF!? Have you open a XAML definition?!! How do I keep all my agents up to date? Why do all the binaries get dumped in a single folder?
Team Build is dead. Long live Team Build Team Build is dead*! Long live Team Build! * no, not actually dead – just renamed to XAML Build
Build Tasks No XAML No MSBuild Cross Platform
Demo Microsoft Ignite 2015 11/13/2018 11:18 AM © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Architectural changes
Co-exists with XAML builds The physical controller is no longer needed Collections use agent pools. Pools defined at the deployment level Agents are updated automatically, via xcopy deployment
Http Traffic Machine 1 C1 TFS Deployment A1 A2 Pool2 Pool1 Machine 2 Controller Pool2 A2P2 A3P2 A4P2 A5P2
Improved Security Each build in it’s own process. No more hung file locks if the build crashes Each build is given a limited time, limited scope access token. Devs can’t write a unit test to access things they shouldn’t.
Extensibility
Scripts before Tasks Generally, you shouldn’t need to add a task. Use tasks to avoid repetition of scripts.
Microsoft Ignite 2015 11/13/2018 11:18 AM Custom Tasks Upload your .zip to the server. It will download to the agents. On Windows – Powershell tasks On XPlat – JavaScript tasks © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Demo Microsoft Ignite 2015 11/13/2018 11:18 AM © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Gaps
Just a few gaps Gated Builds (eta 2015.2) Labelling and tagging sources (2015.1) Throttling (i.e. no more than x min) Client side workspace mapping with TFVC (2015.1) Build chaining
Demo - SonarQube
Demo – SonarQube
Wrap up
Key Thoughts Build vNext (Team Build) is the future. XAML Builds still work, but start transitioning existing builds. Do you need to write custom tasks or scripts? Extend out from build to better understand technical debt.
Q&A Richard Banks - @rbanks54
Complete your session evaluation on My Ignite for your chance to win one of many daily prizes.
Continue your Ignite learning path Microsoft Ignite 2015 11/13/2018 11:18 AM Continue your Ignite learning path Visit Microsoft Virtual Academy for free online training visit https://www.microsoftvirtualacademy.com Visit Channel 9 to access a wide range of Microsoft training and event recordings https://channel9.msdn.com/ Head to the TechNet Eval Centre to download trials of the latest Microsoft products http://Microsoft.com/en-us/evalcenter/ © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.