Handling builds via Team Foundation Server 2017 REST API

In this post I am going to show you how to utilize the new TFS 2017 REST API. In particular you will see how easy is to list, queue and manage builds for your team project. The plan is to Authorize to TFS 2017 on premise and connect to its web rest api. Get a list of team projects For particular team project get a list of build definitions Queue particular build definition Chec…

By Mirek on (tags: build, HttpClient, REST, tfs, categories: infrastructure, web)

Upload custom build task after TFS 2017 Update 1

Over a year ago I’ve posted a guide on how to upload a custom build task to Team Foundation Server 2015. The solution was based on a TFS REST api which allowed to manipulate build tasks easily. Things have changed since then unfortunately… Now in TFS 2017 after Update 1 this option is not available any more. The REST API is still there and you can get the json definition of the…

By Mirek on (tags: build, tfs, vNext, categories: tools, infrastructure)

TFS 2015 – Setting up build agent on separate machine

Recently we’ve installed and configured the Team Foundation Server on premise infrastructure. This was described here. In this post I would like to show you how to install and configure the build agent to work on a different machine separately from the TFS server, as it turned out to be quite tricky. My way to successfully set up the build agent for TFS 2015 was basically a try…

By Mirek on (tags: build, tfs, categories: tools, infrastructure)

TFS 2015 – MSBuild in custom step

If you didn’t yet happen to create a custom build step for Team Foundation Server 2015 take a look at my previous posts here and here. Today I will show you the right (IMHO) way of calling MSBuild from the custom build step. I had a task to create a custom build step which took the list of projects names and has to publish a ClickOnce installers for them. It first searches for …

By Mirek on (tags: build, ci, msbuild, Powershell, tfs, categories: tools, infrastructure)

TFS 2015 build vNext – Upload directory to FTP

In previous post I showed you how to create a custom build step, upload and use it in the Team Foundation Server 2015. This time we will try to create more complex build task. This will be FTP uploader. Keep reading. There is already a step which gives you the possibility to upload files to FTP location and it comes out of the box with TFS 2015. This is called cURL and you can …

By Mirek on (tags: build, ftp, Powershell, tfs, categories: tools, infrastructure)

Creating custom vNext build task for Team Foundation Server 2015

The new vNext build system in TFS 2015 is simpler and easier to manage than the previous version, Windows Workflow based, build system. It builds up from a collection of build step which you can add and remove. The collection of available build steps is pretty rich and can be extended by a custom build steps. In this post I will show you how to easy create and deploy a custom v…

By Mirek on (tags: build, tfs, vNext, categories: tools, infrastructure)