Monitoring of Buildkite pipelines and builds in Pipedash, with branch builds, build history, build cancel and job logs.
The Buildkite plugin (buildkite) monitors the latest build of each selected pipeline. It loads build history, starts builds on a branch and cancels builds. It also shows job logs inside Pipedash.
Requirements
The plugin authenticates with a Buildkite API access token that has the read_builds, read_build_logs, read_pipelines and read_organizations scopes. Buildkite has no optional scopes. The log endpoint needs read_build_logs.
Buildkite answers a rejected token with HTTP 401. Pipedash reports it as an authentication error and does not retry the request. HTTP 403 shows as permission denied.
Configuration

| Key | Type | Required | Default | Description |
|---|---|---|---|---|
token | Password | Yes | None | Buildkite API access token with read_builds, read_build_logs, read_pipelines and read_organizations scopes. |
Two more keys go in the config table of the TOML file:
selected_items: Comma-separated entries in the formorg/pipeline-slug. An empty selection showsNo pipelines configured. A file that setspipelinesinstead ofselected_itemsstill works. If neither key exists, Pipedash reportsNo pipelines selected.organization: The organization slug. It applies only to an entry without an organization prefix. Without it, such an entry shows the errorCould not determine organization of pipeline <slug>.
Base URL
The endpoint is fixed at https://api.buildkite.com/v2. There is no base_url field.
Pipeline discovery
The organization picker lists every organization the token can see. Pipedash requests 100 organizations per API page until Buildkite returns a short or empty page. Pipeline discovery uses the same complete organization list. An error on any organization-list page fails the request instead of returning an incomplete list.
Discovery lists pipelines from the chosen organization, or from every organization when no filter applies. Each pipeline shows its repository name as the description. Search matches name, ID and description.
The picker currently uses the pipeline display name in its selection ID. Buildkite API requests use the pipeline slug. When those values differ, configure selected_items in TOML with org/pipeline-slug, using the slug from Buildkite.
With an organization filter, a pipeline-list error fails discovery. Without a filter, a non-transient error stops that organization's remaining pages and discovery continues with the next organization. Pipelines already read stay in the result. A network error, rate limit or HTTP 5xx response fails the whole discovery request.
Pipedash shows the latest build of each pipeline in selected_items. A pipeline that fails with a non-transient error, for example a missing pipeline, is skipped and the rest still appear. If every pipeline fails, Pipedash reports the first error. A network error, a rate limit or an HTTP 5xx answer fails the whole refresh.
Run history reads pages of 100 builds, newest first, until the history view has enough builds or Buildkite returns a short page. It can load beyond 1000 builds. Run details and the Logs tab load a build by its number. A build number that does not exist returns a not-found error.
Provider health reads the Buildkite status page at https://www.buildkitestatus.com. See provider health.
Trigger parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
branch | String | Yes | main | Branch to build. Pipedash builds HEAD of that branch. |
message | String | No | None | Build message. The REST API accepts it. The trigger form has no field for it. |
env | Object | No | None | Environment variables for the build, sent as given. The REST API accepts it. The trigger form has no field for it. |
Cancel
Pipedash cancels the build through the Buildkite API, using the run number as the build number.
Run logs
The Logs tab of the run details lists the script jobs of the build. Retried attempts, wait steps and block steps stay out of the list, so a retried job shows only its latest attempt. A job is named after its name, then the first line of its command, then its step key. A parallel job reads such as test (2/4). Pipedash reads the jobs from the build and downloads the log of one job with GET /organizations/{org}/pipelines/{slug}/builds/{number}/jobs/{job}/log. A download stops with an error when no data arrives for 60 seconds, and after 15 minutes in total.
Buildkite logs stream while a job runs. With the dialog open, Pipedash reads the log of a running job about every 2 seconds. It asks Buildkite for the size of the log and fetches only the unseen end of it. It reads the whole log again when the log got shorter or Buildkite does not answer the range request. It reads the job list again every 5 seconds while the build is unfinished. A job that waits to start shows "Logs appear when this job finishes" and opens by itself. A job that never started has no log. When Buildkite answers 404 or 410 for a job log, the tab shows "The provider no longer has this log. It may have expired."
Pipedash reads the timestamp that the agent writes before each line. Header lines that start with --- or ~~~ start a section that is closed. A line that starts with +++ starts an open section. A ^^^ +++ line opens the section above it. Sections do not nest, because each header ends the open section. A line that starts with 🚨 Error: shows as an error and ⚠️ Warning: as a warning. A line that starts with $ and a space shows as a command. Pipedash does not guess other lines as errors. The Run logs page covers the viewer.
TOML example
[providers.buildkite-ci]
name = "Buildkite CI"
type = "buildkite"
token = "${BUILDKITE_TOKEN}"
refresh_interval = 15
[providers.buildkite-ci.config]
selected_items = "mycompany/deploy-pipeline,mycompany/test-pipeline"Status mapping
| Pipedash status | Buildkite state |
|---|---|
success | passed |
failed | failed |
running | running, started |
pending | scheduled, creating, waiting, blocked, any other state, or a pipeline with no build yet |
cancelled | canceled, canceling |
skipped | skipped, not_run |