Queue and Monitor a Build
A 3-step recipe with Azure DevOps. We can help you get access.
Recipe · 3 steps
Queue and Monitor a Build
with Azure DevOps · Continuous Integration Management
Queue a build, poll to completion, and retrieve its timeline.
- Queue a new build for the supplied definition, optionally overriding the source branch.
- Fetch the build by ID and check its status. While the build is still in progress, loop back and poll again; once completed, continue to the timeline step.
- Fetch the detailed build timeline to expose the per-task pass/fail state of the completed build.
What you'll need to have ready
- apiVersion: Azure DevOps REST API version (e.g. 7.1).
- definitionId: ID of the build definition to queue.
- sourceBranch: Optional source branch override (e.g. refs/heads/main).
- accessToken: Azure DevOps bearer (OAuth 2.0) access token.
For your developer
Arazzo workflow microsoft-azure-devops:queue-and-monitor-build, 3 operations: builds_queue → builds_get → builds_getTimeline. Specs on APIs.io.