Skip to content
Branch: master
Find file History
Type Name Latest commit message Commit time
Failed to load latest commit information.
icon.png Adding TagBuild task Apr 28, 2017
package.json Update to azure-devops-node-api Sep 17, 2018
tagBuild.ts Update to azure-devops-node-api Sep 17, 2018
yarn.lock Update to azure-devops-node-api Sep 17, 2018

Colin's ALM Corner Build Tasks - Tag Build

Tag Build/Release Task


This task tags a build/release with the tags specified.


- task: colinsalmcorner.colinsalmcorner-buildtasksbeta.tag-build-task.tagBuildOrRelease@0
  displayName: 'Tag Build'
  type: Build  # Build or Release - specify which artifact to tag (default is Build)
    tags: |


The task requires the following settings:

  1. Type: Build or Release (see below for explanation).
  2. Tags: Tags to add to the build. Can be multi-line for multiple tags.

Permissions for Tagging Releases

In order to tag releases, the build service identity needs Manage Releases permissions. If the permissions are not set the task will fail with this error:

VS402904: Access denied: User Project Collection Build Service does not have manage releases permission. Contact your release manager.

You can set the permission as follows:

  1. Click on the ellipses on the All release definitions node in the Release explorer and click Security. All Releases security
  2. Click on the Project Collection Build Service and set Manage Releases to Allow. Set Manage Releases to Allow

Tagging Types Matrix

Definition Type Tag Type Notes
Build Build Tags the current build with the tags
Build Release Throws an error
Release Release Tags the current release with the tags
Release Build Tags the primary build artifact's build with the tags
You can’t perform that action at this time.