Azure DevOps · Arazzo Workflow

Azure DevOps Queue and Monitor a Build

Version 1.0.0

Queue a build, poll until it completes, and fetch its timeline.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub AgileCI/CDDevOpsProject ManagementVersion ControlArazzoWorkflows

Provider

microsoft-azure-devops

Workflows

queue-and-monitor-build
Queue a build, poll to completion, and retrieve its timeline.
Queues a build for a definition, polls the build until it completes, and fetches the build timeline.
3 steps inputs: accessToken, apiVersion, definitionId, sourceBranch outputs: buildId, buildResult, timelineId
1
queueBuild
Queue a new build for the supplied definition, optionally overriding the source branch.
2
pollBuild
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.
3
getTimeline
Fetch the detailed build timeline to expose the per-task pass/fail state of the completed build.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Azure DevOps Queue and Monitor a Build
  summary: Queue a build, poll until it completes, and fetch its timeline.
  description: >-
    Queues an Azure Pipelines (classic) build and follows it to completion. The
    workflow queues a build for a definition with an optional source branch
    override, polls the build by ID until its status reaches completed (looping
    back while it is still in progress), and then fetches the detailed timeline
    so callers can see which phases, jobs, and tasks passed or failed. Every step
    spells out its request inline so the flow can be read and executed without
    opening the underlying OpenAPI description.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-4210.10
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-4210.10
      capability_name: Continuous Integration Management
      spec: microsoft-azure-devops-builds-api-openapi.yml
      confidence: 0.88
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: buildLogsApi
  url: ../openapi/microsoft-azure-devops-build-logs-api-openapi.yml
  type: openapi
- name: buildsApi
  url: ../openapi/microsoft-azure-devops-builds-api-openapi.yml
  type: openapi
workflows:
- workflowId: queue-and-monitor-build
  summary: Queue a build, poll to completion, and retrieve its timeline.
  description: >-
    Queues a build for a definition, polls the build until it completes, and
    fetches the build timeline.
  inputs:
    type: object
    required:
    - apiVersion
    - definitionId
    properties:
      apiVersion:
        type: string
        description: Azure DevOps REST API version (e.g. 7.1).
      definitionId:
        type: integer
        description: ID of the build definition to queue.
      sourceBranch:
        type: string
        description: Optional source branch override (e.g. refs/heads/main).
      accessToken:
        type: string
        description: Azure DevOps bearer (OAuth 2.0) access token.
  steps:
  - stepId: queueBuild
    description: >-
      Queue a new build for the supplied definition, optionally overriding the
      source branch.
    operationId: builds_queue
    parameters:
    - name: api-version
      in: query
      value: $inputs.apiVersion
    requestBody:
      contentType: application/json
      payload:
        definition:
          id: $inputs.definitionId
        sourceBranch: $inputs.sourceBranch
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      buildId: $response.body#/id
      buildNumber: $response.body#/buildNumber
  - stepId: pollBuild
    description: >-
      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.
    operationId: builds_get
    parameters:
    - name: api-version
      in: query
      value: $inputs.apiVersion
    - name: buildId
      in: path
      value: $steps.queueBuild.outputs.buildId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      status: $response.body#/status
      result: $response.body#/result
    onSuccess:
    - name: stillRunning
      type: goto
      stepId: pollBuild
      criteria:
      - context: $response.body
        condition: $.status != 'completed'
        type: jsonpath
    - name: finished
      type: goto
      stepId: getTimeline
      criteria:
      - condition: $response.body#/status == completed
  - stepId: getTimeline
    description: >-
      Fetch the detailed build timeline to expose the per-task pass/fail state of
      the completed build.
    operationId: builds_getTimeline
    parameters:
    - name: api-version
      in: query
      value: $inputs.apiVersion
    - name: buildId
      in: path
      value: $steps.queueBuild.outputs.buildId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      timelineId: $response.body#/id
  outputs:
    buildId: $steps.queueBuild.outputs.buildId
    buildResult: $steps.pollBuild.outputs.result
    timelineId: $steps.getTimeline.outputs.timelineId

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/microsoft-azure-devops-build-queue-monitor-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.