build_run_build
Trigger automated builds in Azure DevOps using specified project and build definition IDs, with optional branch and custom parameters, via PAT-authenticated API.
Instructions
Triggers a new build for a specified definition.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
definitionId | Yes | ID of the build definition to run | |
parameters | No | Custom build parameters as key-value pairs | |
project | Yes | Project ID or name to run the build in | |
sourceBranch | No | Source branch to run the build from. If not provided, the default branch will be used. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"definitionId": {
"description": "ID of the build definition to run",
"type": "number"
},
"parameters": {
"additionalProperties": {
"type": "string"
},
"description": "Custom build parameters as key-value pairs",
"type": "object"
},
"project": {
"description": "Project ID or name to run the build in",
"type": "string"
},
"sourceBranch": {
"description": "Source branch to run the build from. If not provided, the default branch will be used.",
"type": "string"
}
},
"required": [
"project",
"definitionId"
],
"type": "object"
}