Based on VSTS Trgger by Sergii Bomko: https://marketplace.visualstudio.com/items?itemName=sergiibomko.vsts-trigger It adds condition to trigger only if current Git branch is master. This is to allow a single build definition to be used to build all branches and Pull Requests, but trigger Release only for master builds.
The extension contains tasks which allow to trigger processes.
How it works
The task calls VSTS REST API for triggering process and fetching all needed data.
Use generated personal access token, Server URL is your VSTS service, User name can be anything
The task allow to trigger release process from build process or other release process. The task builds batch with all needed artifacts with latest versions for target release definition and trigger the release. In case when target release definition needs artifact from current process the task takes current artifacts, not latest.
To add task into your build or release definition
fill settings for the task