Buildkite · Schema

Buildkite Build

A Buildkite Build resource as returned by the REST API. Tracks https://buildkite.com/docs/apis/rest-api/builds.

CI/CDContinuous IntegrationContinuous DeliveryDevOpsPipelinesHybrid CIBuild AutomationTest EnginePackage RegistriesAgentsGraphQLRESTMCPWebhooks

Properties

Name Type Description
id string
graphql_id string
url string
web_url string
number integer
state string
blocked boolean
message stringnull
commit string
branch string
tag stringnull
env object
source string
creator object
jobs array
created_at string
scheduled_at string
started_at stringnull
finished_at stringnull
pipeline_id string
View JSON Schema on GitHub

JSON Schema

buildkite-build-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/buildkite-com/main/json-schema/buildkite-build-schema.json",
  "title": "Buildkite Build",
  "description": "A Buildkite Build resource as returned by the REST API. Tracks https://buildkite.com/docs/apis/rest-api/builds.",
  "type": "object",
  "required": ["id", "number", "state", "branch", "commit"],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "graphql_id": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "web_url": {
      "type": "string",
      "format": "uri"
    },
    "number": {
      "type": "integer",
      "minimum": 1
    },
    "state": {
      "type": "string",
      "enum": [
        "running",
        "scheduled",
        "passed",
        "failed",
        "blocked",
        "canceled",
        "canceling",
        "skipped",
        "not_run",
        "finished"
      ]
    },
    "blocked": {
      "type": "boolean"
    },
    "message": {
      "type": ["string", "null"]
    },
    "commit": {
      "type": "string"
    },
    "branch": {
      "type": "string"
    },
    "tag": {
      "type": ["string", "null"]
    },
    "env": {
      "type": "object"
    },
    "source": {
      "type": "string",
      "enum": ["webhook", "ui", "api", "schedule", "trigger_job"]
    },
    "creator": {
      "type": "object"
    },
    "jobs": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "scheduled_at": {
      "type": "string",
      "format": "date-time"
    },
    "started_at": {
      "type": ["string", "null"],
      "format": "date-time"
    },
    "finished_at": {
      "type": ["string", "null"],
      "format": "date-time"
    },
    "pipeline_id": {
      "type": "string",
      "format": "uuid"
    }
  }
}