Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Label Source upon successful build on Visual Studio Team Services

I was trying to use new Build on Visual Studio Team Services (not XAML) but couldn't figure out how to label the source upon successful build. Any idea?

Below is the screenshot that shows how to do in XAML one.

enter image description here

I already have a feature request at https://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/9613014-allow-label-source-upon-succesful-build-on-visual I'm actually asking for a workaround until Microsoft implements it.

like image 595
cilerler Avatar asked Sep 02 '15 21:09

cilerler


People also ask

What is TFS label?

Using TFS Labels will let you take a snapshot of the files deployed which will help you to review, build, or rollback changes easily. This blog will show you the step-by-step process on how to apply labels. 1. Right-click on the file or folder you would like to have a label.

What is label in DevOps?

Azure DevOps Services | Azure DevOps Server 2022 - Azure DevOps Server 2019 | TFS 2018. Visual Studio 2022 | Visual Studio 2019 | Visual Studio 2017 | Visual Studio 2015 | Visual Studio 2013. Labels let you take a snapshot of your files so that you can refer back to that snapshot.

What is build definition in TFS?

A build definition is the mechanism that controls how and when builds occur for team projects in TFS. Each build definition specifies: The things you want to build, like Visual Studio solution files or custom Microsoft Build Engine (MSBuild) project files.

Is VSTS GitHub?

The primary difference between the two is that VSTS is focused on closed source projects and GitHub is focused more on open source projects. GitHub offers both private and public repositories. However, it doesn't have an integrated build server.


1 Answers

I think Yves Dierick's answer was correct back in October 2015, but the layout of the VSTS screens has changed a lot since then. In the latest version (as of February 2017), you can add a label to a successful build by selecting the Get Sources task in the Build Definition, choosing show Advanced Settings in the top-right corner and then selecting the On success radio button under the Tag Sources section that appears.

Took me a while to find it, so I thought it might help someone else. It doesn't help that this option is under "Tag sources" and doesn't mention the word "label" at all.

enter image description here


Update 13/03/2018

They've tweaked the layout of this page again, but made it simpler if anything, and now the option is more helpfully named "Label Sources". Updated option for labelling builds

like image 138
Philip Stratford Avatar answered Sep 21 '22 18:09

Philip Stratford