Provision a Build Definition and Run It
A 3-step recipe with Azure DevOps. We can help you get access.
Recipe · 3 steps
Provision a Build Definition and Run It
with Azure DevOps · Continuous Integration Management
Create a build definition, confirm it, and queue its first build.
- Create the build definition from the supplied definition body.
- Fetch the build definition by ID to confirm it was created and capture its current revision.
- Queue an initial build against the newly created definition.
What you'll need to have ready
- apiVersion: Azure DevOps REST API version (e.g. 7.1).
- definition: Build definition body matching BuildDefinitionCreateRequest (name, repository, process, queue, etc.).
- sourceBranch: Optional source branch for the first queued build.
- accessToken: Azure DevOps bearer (OAuth 2.0) access token.
For your developer
Arazzo workflow microsoft-azure-devops:provision-build-definition, 3 operations: definitions_create → definitions_get → builds_queue. Specs on APIs.io.