Is there a way to run (queue) a specific azure pipeline from the command line or via http web-hook or an API ? I would like to automatically trigger a pipeline without the need to change git or whatever.
Asked
Active
Viewed 883 times
1 Answers
1
You can use the AzureDevOps Rest API
POST:
https://account.visualstudio.com/project/_apis/build/builds?api-version=4.1
Body:
{
"definition": {
"id": number
}
}

Jayendran
- 9,638
- 8
- 60
- 103
-
In addition, there are some easy-to-use extensions in the Marketplace, like https://marketplace.visualstudio.com/items?itemName=benjhuser.tfs-extensions-build-tasks or https://marketplace.visualstudio.com/items?itemName=delegen.DelegenQueueNewBuild and more – Giulio Vian Nov 29 '18 at 09:21