capabilities.work

Trigger And Poll Build

A 3-step recipe with Buildkite. We can help you get access.

Recipe · 3 steps

Trigger And Poll Build

with Buildkite · Continuous Integration Management
Works with AI assistants

Create a build and poll it to completion.

  1. Create a new build on the pipeline for the supplied commit and branch.
  2. Fetch the build record and check whether it has left the running and scheduled states; loop back while it is still in progress.
  3. Re-read the finished build so the terminal state is captured as the workflow result.
What you'll need to have ready
  • org: Organization slug that owns the pipeline.
  • pipeline: Pipeline slug to create the build on.
  • commit: Git commit SHA (or HEAD) to build.
  • branch: Git branch to build.
  • message: Optional build message shown in the Buildkite UI.
For your developer

Arazzo workflow buildkite-com:trigger-and-poll-build, 3 operations: createBuild → getBuild → getBuild. Specs on APIs.io.