TFS Build 2015 (vNext) – Gated Builds

This post is part of a series of articles on the new TFS Build vNext System.

Using the old xaml builds we had the ability to perform gated checkins. This is only available for TFVC projects and not for GIT projects, mainly because this concept of gated builds uses shelvesets which are not applicable when using GIT.

With the new vNext build definitions, the concept of gated builds is gone from the triggers tab for both GIT and TFVC based builds.So what about gated checkins for vNext builds?

In TFS 2015 and Visual Studio Online we now have the ability to gate commits made to GIT and much more using a feature called branch polices. This functionality is only available for GIT projects currently, it will be interesting to see if and how Microsoft supports this for TFVC. I want to take a closer look at these new features.

Continue reading TFS Build 2015 (vNext) – Gated Builds

Advertisements

TFS Build 2015 (vNext) – Custom Tasks

This post is part of a series of articles on the new TFS Build vNext System.

So I’ve talked before about how the new cross platform build system in TFS 2015 and Visual Studio Online is fully extensible and allows you to create your own custom build tasks but it isn’t immediately obvious how to do it.

I’ll would like to walk through an end to end example creating a custom vnext build task to run a SQL script as part of the build

The tasks for build vNext are open source and Microsoft is accepting contributions so if you write a really nice and useful task it could be included in every Visual Studio Online account.

Continue reading TFS Build 2015 (vNext) – Custom Tasks

TFS Build 2015 (vNext) – Pools, Agents and Queues

This post is part of a series of articles on the new TFS Build vNext System.

The old build controllers and agents have been replaced by a completely new system. The old xaml system of controllers and agents is still there but it sits side by side with the newer system. Lets see what is new in the new system and talk about how to set up a Windows agent and a Linux or OSX agent.

Agents

Build agents are the things that actually execute your builds. The big news about build agents in 2015 is that they now come in two flavors, a Windows build agent for Windows machines and a cross platform agent (written in node.js) that can run on Linux and Mac OSX. That’s huge it means for the first time we can use TFS to build xcode on OSX or Java on a Linux box using Maven or Android code etc etc, thats huge.

Continue reading TFS Build 2015 (vNext) – Pools, Agents and Queues

TFS Build 2015 (vNext) – Scripts and Variables

This post is part of a series of articles on the new TFS Build vNext System.

So as I talked about before it looks like the main way we will be able to customise our builds is to simply add a powershell script task to the build. We can create custom tasks if we like but for most build activities it will be enough to just add a powershell script. So lets say we have a set of unit tests that run against a database and we need to drop and recreate the database before the unit tests run. Here’s a simple example of how to wire in a script that does just that. Continue reading TFS Build 2015 (vNext) – Scripts and Variables

TFS Build 2015 (vNext) – Build Definitions

This post is part of a series of articles on the new TFS Build vNext System.

Lets take a more detailed look and the new build definitions and see what there is there. I’ve just downloaded the latest version of Visual Studio 2015 RC and I was a little surprised to see almost all UI for managing and editing builds (both xaml and vNext) has moved to the web portal. This is a big minus point for me, as a build ‘power user’ continuously switching from VS to the browser to monitor and manage my builds is very inefficient. I raised this uservoice request about it. Just imagine the number of clicks needed in the browser to switch team projects.

Continue reading TFS Build 2015 (vNext) – Build Definitions

TFS Build 2015 (vNext) – A First Look

I have finally had time to  try out the new TFS build system that is coming out in TFS 2015 and is currently in preview in VSO. I have worked a lot with the xaml based system so I was very interested to see how  the new vNext system compares and how I can move my very long and complicated xaml build templates over to vNext. I have been slightly blown away by just how radically different it is to the old xaml based system.

Continue reading TFS Build 2015 (vNext) – A First Look