building with visual studio online
TRANSCRIPT
![Page 1: Building with Visual Studio Online](https://reader034.vdocuments.site/reader034/viewer/2022042717/55d10c8abb61eb1f668b463b/html5/thumbnails/1.jpg)
BuildingWITH VISUAL STUDIO ONLINE & TEAM FOUNDATION SERVER
Jeff BramwellDirector – Enterprise Architecture, Farm Credit Services of AmericaVisual Studio ALM MVP@jbramwell :::: blog.devmatter.com
![Page 2: Building with Visual Studio Online](https://reader034.vdocuments.site/reader034/viewer/2022042717/55d10c8abb61eb1f668b463b/html5/thumbnails/2.jpg)
Agenda What’s New?
Web-based UI
Mind Your P’s and Q’s
Build Agents
Build Definitions
Build Tasks
Cross Platform Support
Summary
![Page 3: Building with Visual Studio Online](https://reader034.vdocuments.site/reader034/viewer/2022042717/55d10c8abb61eb1f668b463b/html5/thumbnails/3.jpg)
But First, Let’s Clear Things Up…
![Page 4: Building with Visual Studio Online](https://reader034.vdocuments.site/reader034/viewer/2022042717/55d10c8abb61eb1f668b463b/html5/thumbnails/4.jpg)
What is What?
Team Foundation Server
Visual Studio Online
Visual Studio
Visual Studio Code
![Page 5: Building with Visual Studio Online](https://reader034.vdocuments.site/reader034/viewer/2022042717/55d10c8abb61eb1f668b463b/html5/thumbnails/5.jpg)
What’s New? No more XAML/Workflow!
Web-based UI
Cross Platform
Task-Based◦ Extensible◦ Open Source
Version History
Not tied to TFS/VSO
![Page 6: Building with Visual Studio Online](https://reader034.vdocuments.site/reader034/viewer/2022042717/55d10c8abb61eb1f668b463b/html5/thumbnails/6.jpg)
What’s Missing? Create work item on build failure
Create label on build success
Update work item(s) with build number
Count-based retention policies (works different than before)
![Page 7: Building with Visual Studio Online](https://reader034.vdocuments.site/reader034/viewer/2022042717/55d10c8abb61eb1f668b463b/html5/thumbnails/7.jpg)
To XAML or not to XAML? For new projects (or projects without build definitions), use the new builds
For cross-platform builds, use the new builds
If migrating an existing project (e.g. from TFVC to Git) consider updating to the new builds
If heavily invested in custom XAML builds/activities, continue with XAML builds until existing custom logic can be ported to the new builds
But, in general… XAML
![Page 8: Building with Visual Studio Online](https://reader034.vdocuments.site/reader034/viewer/2022042717/55d10c8abb61eb1f668b463b/html5/thumbnails/8.jpg)
Web UI Build definitions now created in browser – not Visual Studio
Build definitions can be created from anywhere!
If you’re used to TeamCity/Jenkins, then you’ll feel at home
Builds can be queued and monitored in real time
![Page 9: Building with Visual Studio Online](https://reader034.vdocuments.site/reader034/viewer/2022042717/55d10c8abb61eb1f668b463b/html5/thumbnails/9.jpg)
DEMOOUR FIRST LOOK AT THE WEB UI
![Page 10: Building with Visual Studio Online](https://reader034.vdocuments.site/reader034/viewer/2022042717/55d10c8abb61eb1f668b463b/html5/thumbnails/10.jpg)
Mind Your P(ools) & Q(ueues) No more Build Controllers!
We now have…
Pools◦ Define permission boundaries around build agents◦ Tied to the TFS App Tier Instance – or – the VSO Account◦ Can be shared across Team Project Collections
Queues◦ Scoped to Team Project Collection◦ Associates a Pool with one or more Build Definitions
![Page 11: Building with Visual Studio Online](https://reader034.vdocuments.site/reader034/viewer/2022042717/55d10c8abb61eb1f668b463b/html5/thumbnails/11.jpg)
Agent Pools & Queues – Cont’dPools
(TFS AT/VSO Account)
Queue-1
Queue-2
Build Def’s
Build Def’s
Queue-3
Queue-4
Build Def’s
Build Def’s
Agents1-4
Agents5-6
Agents9-10
Pool-2
Pool-1
Pool-3
Project Collection
Project Collection
Build Agents
(X-Plat)
Agent8
Agent7
Apply permissions at the pool
level
Capabilities determine the agent
![Page 12: Building with Visual Studio Online](https://reader034.vdocuments.site/reader034/viewer/2022042717/55d10c8abb61eb1f668b463b/html5/thumbnails/12.jpg)
Build Agents Brand new architecture
Open Source!◦ https://github.com/Microsoft/vso-agent/
“xcopy” deployable
Cross platform
Easy to install and configure
Self-updating!
No build controller required
Can run as Windows service or interactive (e.g. command line)
![Page 13: Building with Visual Studio Online](https://reader034.vdocuments.site/reader034/viewer/2022042717/55d10c8abb61eb1f668b463b/html5/thumbnails/13.jpg)
DEMOP’S & Q’S
![Page 14: Building with Visual Studio Online](https://reader034.vdocuments.site/reader034/viewer/2022042717/55d10c8abb61eb1f668b463b/html5/thumbnails/14.jpg)
Build Tasks Cross-platform
Open source◦ https://github.com/Microsoft/vso-agent-tasks
Currently 37 tasks available out of the “box”
Currently 45 in GitHub (so, more to come!)
Ability to create/upload custom tasks coming◦ Written in JavaScript/TypeScript/PowerShell◦ Configured via JSON (task.json)
![Page 15: Building with Visual Studio Online](https://reader034.vdocuments.site/reader034/viewer/2022042717/55d10c8abb61eb1f668b463b/html5/thumbnails/15.jpg)
DEMOA LOOK AT A TASK’S INTERNALS
![Page 16: Building with Visual Studio Online](https://reader034.vdocuments.site/reader034/viewer/2022042717/55d10c8abb61eb1f668b463b/html5/thumbnails/16.jpg)
Cross Platform Support Mostly straight-forward… the following platforms are supported:
◦ Windows, requires:◦ Visual Studio 2013/2015◦ PowerShell 3 or newer
◦ OS X, requires:◦ Node & npm
◦ Linux, requires:◦ Node & npm
Cross platform agent available here:◦ https://www.npmjs.com/package/vsoagent-installer
![Page 17: Building with Visual Studio Online](https://reader034.vdocuments.site/reader034/viewer/2022042717/55d10c8abb61eb1f668b463b/html5/thumbnails/17.jpg)
In Summary The new build architecture is:
◦ Much simpler!◦ Web based◦ Community-oriented (i.e. open source)◦ Better/easier extensibility◦ Cross platform◦ And, most of all, NO XAML!
![Page 18: Building with Visual Studio Online](https://reader034.vdocuments.site/reader034/viewer/2022042717/55d10c8abb61eb1f668b463b/html5/thumbnails/18.jpg)
References VSO Build Agent
◦ https://github.com/Microsoft/vso-agent
VSO Build Agent Tasks◦ https://github.com/Microsoft/vso-agent-tasks
VSO/TFS Features Timeline◦ https://www.visualstudio.com/en-us/news/release-archive-vso
Team Foundation Build Reference on MSDN◦ https://msdn.microsoft.com/en-us/Library/vs/alm/Build/overview
Brian Harry’s Blog◦ http://blogs.msdn.com/b/bharry/
My Blog ◦ http://blog.devmatter.com
![Page 19: Building with Visual Studio Online](https://reader034.vdocuments.site/reader034/viewer/2022042717/55d10c8abb61eb1f668b463b/html5/thumbnails/19.jpg)
Questions?