Search code examples
visual-studiotfsazure-devopstfvc

How to trigger a build based on TFVC label in VSTS?


I've been searching for this but have not been able to find something concrete.

Could someone please help whether it's possible to queue a build based on label in VSTS?

Link here - Label in TFS


Solution

  • Git

    If you are using Git version control you can use the tag as shown below. Git tags are quite nicely supported in web interface and builds.

    Tag in commit enter image description here

    Selecting Tag when queuing build enter image description here

    Getting the source by tag for build enter image description here

    Build done for tag enter image description here

    TFVC

    TFVC is not supporting label in Code tab of web interface. But it is supported in Visual Studio.

    Queuing a build for code in TFVC label should be prefixed by L. enter image description here

    For my label "TFVCSampleLabel" a build is queued like shown below enter image description here

    Build done for Label

    enter image description here