View as Markdown
Azure DevOps icon

Azure DevOps ACTION

Queue Build

Queue a new build for a build definition, optionally on a specific branch and with variable overrides. Returns the queued build's id and status - the build itself runs asynchronously. Use this to trigger CI from an external event. Example: definition 12 on refs/heads/main with parameters { \"environment\": \"staging\" }. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Azure DevOps account once, then configure and run Queue Build from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "azure_devops-queue-build",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    azure_devops: { authProvisionId: "apn_xxxxxxx" },
    organization: "Organization",
    project: "Project",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Queue Build inputs
Property Type Description
organization Organization string
Name of the organization
Required Dynamic
project Project string
Project ID or project name. Run the List Projects action first to obtain valid values.
Required
definitionId Build Definition ID integer
Numeric ID of the build definition. Run the List Build Definitions action first to obtain valid values.
Required
sourceBranch Source Branch string
Fully qualified branch to build, e.g. refs/heads/main. Defaults to the definition's default branch.
Optional
parameters Parameters object
Build variables to override, keyed by variable name. Example: { "environment": "staging" }
Optional
ignoreWarnings Ignore Warnings boolean
Queue the build even when validation produces warnings
Optional
sourceBuildId Source Build ID integer
Positive ID of the build this run is derived from, e.g. 12345. Run the List Builds action first to obtain valid values.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
azure_devops-queue-build
Version
0.0.2
App
Azure DevOps
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes