Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / DevOps

TFS/VSO vNext Build Status Overview Widget

0.00/5 (No votes)
27 Jul 2016CPOL2 min read 7.3K  
Quickly see the status of all of your builds in one widget on your dashboard

Introduction

As the number of builds you have increases, quickly identifying issues becomes more time consuming. This easy widget will allow you to see the status of all of your builds in one place, saving time and effort.

This widget will show the build name with active hyperlinks and the status for each build in a grid.

This is my first post, so bear with me if anything is unclear.

Background

Partly as an excuse to work with the markdown widget and partly for fast and easy analysis of our current build statuses, I created a Build Overview using the markdown widget and build badges. This will work in VSO and TFS 2015 on premise.

If you have not created widgets before, you can find more information at https://www.visualstudio.com/en-us/docs/report/dashboards.

Requirements

You must be using the vNext build system to be able to use the badge, and be on TFS 2015 update 2 or higher, or VSO.

Making the Widget

In the end, this is what the widget will look like. We have several of these, spanning between our team projects.

I am not going to go into detail on markdown language, but more information can be found here. The quotes below are for grouping and should be removed on usage.

  1. Add a markdown widget to your Home page
  2. Click Configure Widget
  3. Add a header, in this case: "#Build Overview"
  4. Now add the ColumnNames: "|Build Name|Outcome|"
  5. Now add the Header Separators: "|-|-|"
  6. The data in the rows is added as follows, this is the first row:
    1. Start the first cell with "|"
    2. Add the link text (build name): "[Nightly]"
    3. Add the path to the build: "(https://TFS-VSO/MyCollection/Team/_build?...)"
    4. End the first Cell "|"
    5. Now to enable and get the Badge path
    6. Edit the build definition
    7. In the General tab, check 'Badge Enabled'
    8. Save then click 'Show url' that will appear next to 'Badge Enabled'
    9. Copy this path to use later
    10. Start with the image tag: "![status]"
    11. Now add the link to the badge path: "(https://../../badge)"
    12. Close the second cell and we are done with that build: "|"
  7. Repeat the steps above for all the builds you have and enjoy being able to see the outcome of all of your builds in one place.
#Build Overview
Build Name|Outcome|
|-|-|
|[Nightly](https://tfs.company.com/tfs/Collection/Project/_build?_a=general&definitionId=01) |
![Status](https://tfs.company.com/tfs/MyCollection/_apis/public/build/definitions/12345678-1234-1234-1234-123456789123/01/badge)|
|[Rolling](https://tfs.company.com/tfs/Collection/Project/_build?_a=general&definitionId=02) |
![Status](https://tfs.company.com/tfs/MyCollection/_apis/public/build/definitions/12345678-1234-1234-1234-123456789123/02/badge)|

History

  • 27th July, 2016: Original post

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)