0

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.

Assaf Sheep
  • 563
  • 1
  • 4
  • 16

1 Answers1

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
        } 
}

Refer my answer here

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