Executing a VSTS/TFS build via PowerShell

This script queues a build in VSTS/TFS, based on the build definition ID or the build definition name and waits until the build completes.

Targets:

Visual Studio Team Services
Team Foundation Services

The script can be viewed on Gist:

Getting tags from a VSTS/TFS build via PowerShell

This script gets the tags associated with a specific build in TFS/VSTS. Authentication can be performed using the current users credentials, a personal access token, or system OAUTH.

Targets:

Visual Studio Team Services
Team Foundation Services

The script can be viewed on Gist:

Adding tags to a VSTS/TFS build via PowerShell

This script adds a tag or tags to a specific build in TFS/VSTS. Authentication can be performed using the current users credentials, a personal access token, or system OAUTH.

Targets:

  • Visual Studio Team Services
  • Team Foundation Services

The script can be viewed on Gist: