Buildkite is a continuous integration and delivery (CI/CD) platform that teams use to build, test, and deploy their code. It runs the steps of each pipeline on agents that you host or that Buildkite hosts, and records every build, job, artifact, and annotation that the pipeline produces.
Hevo uses the Buildkite REST API and the Buildkite GraphQL API to replicate the organizations, users, pipelines, builds, jobs, agents, annotations, and artifacts of your Buildkite account to the Destination of your choice. To ingest data, you must provide Hevo with an API access token of your Buildkite account.
Supported Features
| Feature Name |
Supported |
| Capture deletes |
Yes, for the objects whose records Hevo ingests in each run |
| History mode |
No |
| Custom data (user-configured tables & fields) |
No |
| Data blocking (skip objects and fields) |
Yes |
| Resync (objects and Pipelines) |
Yes |
| API configurable |
Yes |
Prerequisites
-
An active Buildkite account from which data is to be ingested.
-
You are a member of the Buildkite organization whose data you want to replicate.
-
An API access token with access to the organization is available.
Create an API Access Token
Hevo connects to your Buildkite account using an API access token. The token provides access to the data that you can access in the organization that you select for it. Hevo uses the REST API to read the organization, its pipelines, builds, jobs, agents, annotations, and artifacts, and the GraphQL API to read the members of the organization.
Perform the following steps to create an API access token:
-
Log in to your Buildkite account.
-
Click your profile icon in the top-right corner, and then click Personal settings.

-
In the left navigation pane, click API Access Tokens.

-
Click New API Access Token.

-
On the New API Access Token page, specify the following:

-
Description: A description for the token. For example, Hevo.
-
Organization Access: The organization whose data you want to replicate. A token can access only one organization.
-
Token Expiry: The duration after which the token expires. You cannot change the expiry after you create the token.
-
Under REST API Scopes, in the CI/CD section, select the READ check box for Pipelines, Builds, Artifacts, and Agents.

-
In the Organization & Users section, select the READ check box for Organizations.

-
Under GraphQL API Access, select Read-only.

-
Click Create New API Access Token.

-
Click the copy icon next to the token to copy it, and save it securely like any other password. Buildkite displays the token only once.

Perform the following steps to configure your Buildkite Source:
-
Click Pipelines in the Navigation Bar.
-
Click + Create Pipeline in the Pipelines List View.
-
On the Select Source Type page, select Buildkite.
-
On the Select Destination Type page, select the type of Destination you want to use.
-
On the Configure Source page, specify the following:

-
Source Name: A unique name for your Source, not exceeding 255 characters. For example, Buildkite Source.
-
In the Connect to Buildkite section:
-
Click Test & Continue to test the connection to your Buildkite Source. Once the test is successful, you can proceed to set up your Destination.
Data Replication
Hevo replicates data for all the objects selected on the Configure Objects page during Pipeline creation. By default, all supported objects and their available fields are selected. However, you can modify this selection while creating or editing the Pipeline. To ingest a child object, you must also select its parent object. The Data Model lists the child objects of each parent object.
The first run of the Pipeline ingests all the data of the Organization object and its child objects, and the builds created in the last 365 days, along with their child objects. In the subsequent runs, as per the sync frequency, Hevo ingests data as follows:
| Ingestion |
Objects |
| New builds, based on the time each build was created |
Build, along with its child objects, Agent, Agent Metadata, Annotation, Artifact, Build Job, and Build Job Agent Query Rule. In each run, Hevo ingests the builds created since one day before the creation time of the latest build ingested in the previous run. |
| All the records, in each run |
Organization, along with its child objects, Pipeline, Pipeline Step, Pipeline Step Agent Query Rule, Pipeline Tag, and Users. |
You can resync the Build and Organization objects. Resyncing a parent object also resyncs its child objects. A resync of the Build object ingests the builds created in the last 365 days.
Buildkite limits REST API requests to 200 requests per minute for each organization and 50 requests per minute for each user. If Hevo exceeds this limit, Hevo waits and retries the request. Read REST API rate limits.
Note: You can create a Pipeline with this Source only using the Merge load mode. The Append mode is not supported for this Source.
Schema and Primary Keys
Hevo uses the following schema to upload the records in the Destination. For a detailed view of the objects, fields, and relationships, click the ERD.
Data Model
The following is the list of tables (objects) that are created at the Destination when you run the Pipeline:
| Object |
Description |
| Build |
Contains the builds of the pipelines in your organization, including the build number, state, branch, commit, message, source, the pipeline and user that started each build, the pull request details, the environment variables and meta-data as JSON, and the creation, scheduling, start, and finish times. It includes the following child objects: - Build Job, which contains the jobs of each build, including the type, name, command, state, exit status, the agent that ran the job, retry details, and the creation, start, and finish times. - Build Job Agent Query Rule, which contains the agent query rules of each job, such as queue=default. - Agent, which contains the agents that ran the jobs, including the name, hostname, IP address, version, connection state, and creation time of each agent. - Agent Metadata, which contains the tags of each agent. - Annotation, which contains the annotations of each build, including the context, style, body in HTML, and the creation and update times. - Artifact, which contains the artifacts that the jobs of each build uploaded, including the file name, path, size, MIME type, SHA-1 checksum, state, and the job that uploaded each artifact. |
| Organization |
Contains the organization that the API access token can access, including the name, slug, URLs, and creation time. It includes the following child objects: - Pipeline, which contains the pipelines of the organization, including the name, slug, repository, default branch, branch settings, provider settings and environment variables as JSON, visibility, the number of scheduled and running builds and jobs, the user who created each pipeline, and the creation and archival times. - Pipeline Step, which contains the steps of each pipeline, including the type, name, command, artifact paths, branch filter, timeout, concurrency, parallelism, and environment variables. - Pipeline Step Agent Query Rule, which contains the agent query rules of each pipeline step. - Pipeline Tag, which contains the tags of each pipeline. - Users, which contains the members of the organization, including the name, email address, avatar URL, role, SSO mode, whether the user is a bot, and the time the user joined the organization. |
Read the detailed Hevo documentation for the following related topics:
Handling of Deletes
Hevo captures the deletes of the Buildkite objects as follows:
| Deletes Captured |
Objects |
| In each run, by comparing the data |
Organization, Pipeline, Pipeline Step, Pipeline Step Agent Query Rule, Pipeline Tag, and Users.
Hevo ingests all the records of these objects in each run, and marks the records that are no longer returned by Buildkite as deleted by setting the value of the metadata column _hevo_marked_deleted to True. For example, if you delete a pipeline, the pipeline, along with its steps, agent query rules, and tags, is marked as deleted in the next run. Similarly, if you remove a tag from a pipeline, the tag is marked as deleted in the Pipeline Tag table. |
| Not captured |
Build, Build Job, Build Job Agent Query Rule, Agent, Agent Metadata, Annotation, and Artifact. A build that is deleted in Buildkite, for example, along with its pipeline, remains in the Destination, along with its jobs, annotations, and artifacts. Agents also remain in the Destination after they disconnect from Buildkite. |
Source Considerations
-
Hevo ingests a build again only if it was created within one day before the latest build ingested in the previous run. If a build changes after this period, for example, a build that runs for more than one day or a blocked build that is unblocked later, the change is not ingested. To ingest the latest state of such builds, resync the Build object.
-
Hevo ingests only the agents that ran the jobs of the builds that it ingests. Agents that have not run any of these jobs are not ingested.
-
If the API access token expires or is revoked in Buildkite, Hevo cannot authenticate with your account. To resume data replication, create a new token and update it in the configuration of your Source.
Limitations
-
Hevo ingests the data of only the organization that you select for the API access token. To replicate the data of another organization, create a Pipeline with a token for that organization. If you use an older token that can access more than one organization, Hevo ingests the data of all those organizations in the same Pipeline.
-
Hevo does not ingest the builds created more than 365 days before the first run of the Pipeline, the build logs, or the test suites of your Buildkite account.