0

I'm trying to run new build pipeline through azure alert webhook. I'm looking for Azure DevOps REST API for this action. I didn't get the proper examples for running the pipeline using REST API.

2 Answers 2

2

Assuming by trigger you mean you want to start a build, try the Queue API call listed in VenkateshDodda-MT's answer. It queus a new build.

Sign up to request clarification or add additional context in comments.

1 Comment

I hope you dont mind me using this to ask, how does one set a variable at queue time via the REST API? The docs have the APIs to queue the build but dont have examples nor do they have the JSON body needed just to queue the build through that API which is of type POST :(
1

As per Azure Documentation, you dont have any rest api to trigger a azure devops build. By using rest api you can perform the below azure devops build operations only.

enter image description here

1 Comment

Isnt the "Queue Build" API what the OP needs? learn.microsoft.com/en-us/rest/api/azure/devops/build/builds/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.