Buildkite
List Buildkite builds by pipeline and branch
Open a Buildkite pipeline’s builds list to inspect branch and status, or call its builds endpoint to retrieve commit and state metadata. Set exclude_jobs=true when you only need build-level fields.
Documentation reviewed · 2 methods with sources
Ways to do it
- API: GET /v2/organizations/{org}/pipelines/{pipeline}/builds
- Interface: Buildkite pipeline build list
API
GET /v2/organizations/{org}/pipelines/{pipeline}/builds
List builds newest first and filter by branch or state. Skip embedded job records when only build metadata is needed.
Read source: Buildkite REST builds API- Requirements
- A Buildkite token with read_builds and access to the organization and pipeline.
- Limitations
- Follow the next Link header to continue. Very deep listings can return HTTP 400. Narrow the date range with created_from or filter by branch.
Example shell
curl --fail "https://api.buildkite.com/v2/organizations/$BUILDKITE_ORG/pipelines/$BUILDKITE_PIPELINE/builds?branch=main&exclude_jobs=true&per_page=50" -H "Authorization: Bearer $BUILDKITE_API_TOKEN"Interface
Buildkite pipeline build list
Use Filter on a pipeline’s Builds list to choose a branch, build state, or your own builds.
Read source: Buildkite dashboard walkthrough- Requirements
- Signed-in Buildkite user with pipeline access.
- Limitations
- Use the REST API when you need to page through the results in a script.
Example text
Buildkite → organization → pipeline → Builds → filter by branch and state