Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data/content/environment_variables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ variables:
example: "DOCKER"
- name: BUILDKITE_PLUGINS
desc: |
A JSON object containing a list plugins used in the step, and their configuration.
A JSON object containing a list of plugins used in the step, and their configuration.

In the Buildkite Agent Stack for Kubernetes, controller-consumed `kubernetes` plugin settings are not available through this environment variable at runtime.
example: '[{"github.com/buildkite-plugins/docker-buildkite-plugin#v3.7.0":{"image":"node:lts-alpine3.14"}}]'
Expand Down
2 changes: 1 addition & 1 deletion pages/agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ In summary though:

* You need full control over your agent infrastructure.
* Your agents need a lot of customization.
* You operate under strict security conditions that requires your source code and CI/CD build runners (the agents) to be managed on premises or in your own cloud-based infrastructure.
* You operate under strict security conditions that require your source code and CI/CD build runners (the agents) to be managed on premises or in your own cloud-based infrastructure.

- _Buildkite hosted agents_ is a fully-managed platform that offers fast and specialized CI/CD build runners, which work well under default conditions. This option lets you get up and running rapidly to build your projects.

Expand Down
4 changes: 2 additions & 2 deletions pages/agent/buildkite_hosted.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The following cost benefits deliver enhanced value through accelerated build tim

- **An internal container registry**: Speed up your pipeline build times by managing your jobs' container images through your [internal container registry](/docs/agent/buildkite-hosted/internal-container-registry), which provides deterministic storage for Open Container Initiative (OCI) images.

- **Consistently rapid queue times**: Job are dispatched to hosted agents within a matter of seconds, providing consistently low queue times.
- **Consistently rapid queue times**: Jobs are dispatched to hosted agents within a matter of seconds, providing consistently low queue times.

Buildkite hosted agents also provides the following assurances:

Expand Down Expand Up @@ -56,7 +56,7 @@ Once started, the Buildkite agent running in the virtualized environment acquire
> 📘 Cluster isolation
> Every Buildkite hosted queue and its agents are configured within a [Buildkite cluster](/docs/pipelines/security/clusters), which benefits from hypervisor-level isolation, ensuring robust separation between each instance. Each cluster also has its own [cache volumes](/docs/agent/buildkite-hosted/cache-volumes), [remote Docker builders](/docs/agent/buildkite-hosted/linux/remote-docker-builders) and [internal container registry](/docs/agent/buildkite-hosted/internal-container-registry), as well as [Buildkite secrets](/docs/pipelines/security/secrets/buildkite-secrets), which are not available to any other cluster.

The ephemeral nature of Buildkite hosted agents' virtualized environments also offer the following benefits:
The ephemeral nature of Buildkite hosted agents' virtualized environments also offers the following benefits:

- Each Buildkite hosted agent begins with a clean state, with no residual data from previous builds that could introduce vulnerabilities or cross-contamination between projects. Job dependencies are also pulled cleanly each time.

Expand Down
2 changes: 1 addition & 1 deletion pages/agent/buildkite_hosted/cache_volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ steps:
<tr>
<td><code>paths</code></td>
<td>
A list of paths to volume. Paths are relative to the working directory of the step.<br/>
A list of paths to volumes. Paths are relative to the working directory of the step.<br/>
Absolute references can be provided in the <code>cache</code> paths configuration relative to the root of the instance.<br/>
<em>Example:</em><br/>
<code>- ".volume"</code><br/>
Expand Down
4 changes: 2 additions & 2 deletions pages/agent/buildkite_hosted/internal_container_registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ To use the internal container registry, you'll need to reference the pre-defined

The main advantage of using your internal container registry over [cache volumes](/docs/agent/buildkite-hosted/cache-volumes) is that unlike cache volumes, the internal container registry's storage is _deterministic_, which means that any commands you use in your pipelines to interact with this registry will interact directly with the relevant data stored in this registry. This is in contrast to the [non-deterministic nature of cache volumes](/docs/agent/buildkite-hosted/cache-volumes#lifecycle-non-deterministic-nature), where commands to retrieve data from your cache volume may instead retrieve it from a different source.

You can use built-in tools in your Buildkite hosted agents, such as [Docker Engine](https://docs.docker.com/engine/), as well as those you can include in an [agent image](/docs/agent/buildkite-hosted/linux#agent-images) through a Dockerfile for Linux hosted agents, such as [Crane](https://michaelsauter.github.io/crane/index.html) or [skopeo](https://github.com/containers/skopeo), or to interact with your internal container registry.
You can use built-in tools in your Buildkite hosted agents, such as [Docker Engine](https://docs.docker.com/engine/), as well as those you can include in an [agent image](/docs/agent/buildkite-hosted/linux#agent-images) through a Dockerfile for Linux hosted agents, such as [Crane](https://michaelsauter.github.io/crane/index.html) or [skopeo](https://github.com/containers/skopeo) to interact with your internal container registry.

## Using your internal container registry

The following example pipeline demonstrates how build and push a custom Docker image (customized using a `.buildkite/Dockerfile.build` file) to your internal container registry. Once the built image has been pushed up to this registry, the pipeline then uses this image as the base image for its next step, [parallelized](/docs/pipelines/best-practices/parallel-builds#parallel-jobs) into three jobs.
The following example pipeline demonstrates how to build and push a custom Docker image (customized using a `.buildkite/Dockerfile.build` file) to your internal container registry. Once the built image has been pushed up to this registry, the pipeline then uses this image as the base image for its next step, [parallelized](/docs/pipelines/best-practices/parallel-builds#parallel-jobs) into three jobs.

```yaml
agents:
Expand Down
2 changes: 1 addition & 1 deletion pages/agent/buildkite_hosted/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Learn more about:

## Sizes

Buildkite offers a selection of Linux instance types (each based on a different combination of size and architecture, known as an _instance shape_), allowing you to tailor your hosted agent resources to the demands of your jobs. The architectures supported include AMD64 (x64_86) and ARM64 (AArch64).
Buildkite offers a selection of Linux instance types (each based on a different combination of size and architecture, known as an _instance shape_), allowing you to tailor your hosted agent resources to the demands of your jobs. The architectures supported include AMD64 (x86_64) and ARM64 (AArch64).

<%= render_markdown partial: 'shared/buildkite_hosted_agents/instance_shape_table_linux' %>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ When using the remote Docker builders feature, Docker image builds within your p

The remote builder service also maintains a [cache](https://docs.docker.com/build/cache/) of its built image layers (stored in the builder service's local file system, and in your [container cache volumes](/docs/agent/buildkite-hosted/cache-volumes#container-cache-volumes)). Images already stored in this local file system usually don't need to be re-built upon a subsequent build, and any images in your container cache volumes can be pulled to jobs requesting them, which in turn, speeds up your overall pipeline builds, since your Buildkite hosted agents running these pipelines are free to build the rest of your pipeline and conduct other work.

When using remote Docker builders, your first few pipeline builds will typically require more time to complete. However, once the required layers and their images have been built, any subsequent pipeline builds are completed much more rapidly. Learn more about how remote Docker builders improve the speed and performance of your of your pipeline builds in [Benefits of using remote Docker builders](#benefits-of-using-remote-docker-builders).
When using remote Docker builders, your first few pipeline builds will typically require more time to complete. However, once the required layers and their images have been built, any subsequent pipeline builds are completed much more rapidly. Learn more about how remote Docker builders improve the speed and performance of your pipeline builds in [Benefits of using remote Docker builders](#benefits-of-using-remote-docker-builders).

## Step-by-step remote Docker builder process

Expand All @@ -31,7 +31,7 @@ This section provides more details about the benefits provided by [remote Docker

Remote Docker builders run on remote dedicated machines, which have been optimized for [BuildKit](https://docs.docker.com/build/concepts/overview/#buildkit). Therefore, CPU-bound stages are completed much more rapidly.

Your [container cache volumes](/docs/agent/buildkite-hosted/cache-volumes#container-cache-volumes) is both shared and persistent, ensuring your job will start and run as quickly as possible. Incremental builds also reliably skip unchanged image layers as they're kept on the dedicated remote Docker builder's local file system, often yielding 2-40 times build speed increases.
Your [container cache volumes](/docs/agent/buildkite-hosted/cache-volumes#container-cache-volumes) are both shared and persistent, ensuring your job will start and run as quickly as possible. Incremental builds also reliably skip unchanged image layers as they're kept on the dedicated remote Docker builder's local file system, often yielding 2-40 times build speed increases.

Using remote Docker builders with the container cache volumes alongside [Git mirror volumes](/docs/agent/buildkite-hosted/cache-volumes#git-mirror-volumes) can provide drastic reductions in job runtimes.

Expand Down
2 changes: 1 addition & 1 deletion pages/agent/buildkite_hosted/macos.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ macOS hosted agents can operate concurrently when running your Buildkite pipelin

The number of macOS hosted agents (of a [Buildkite hosted queue](/docs/agent/queues/managing#create-a-buildkite-hosted-queue)) that can process your pipeline jobs concurrently is calculated by your Buildkite plan's _maximum combined vCPU_ value divided by your [instance shape's](#sizes) _vCPU_ value. See the [Buildkite pricing](https://buildkite.com/pricing/) page for details on the **Mac M4 Concurrency** that applies to your plan.

For example, if your Buildkite plan provides you with a maximum combined vCPU value is up to 24, and you've configured a Buildkite hosted queue with the `MACOS_ARM64_M4_6X28` (Medium) [instance shape](#sizes), whose vCPU value is 6, then the number of concurrent hosted agents that can run jobs on this queue is 4 (that is, 24 / 6 = 4).
For example, if your Buildkite plan provides you with a maximum combined vCPU value of up to 24, and you've configured a Buildkite hosted queue with the `MACOS_ARM64_M4_6X28` (Medium) [instance shape](#sizes), whose vCPU value is 6, then the number of concurrent hosted agents that can run jobs on this queue is 4 (that is, 24 / 6 = 4).

When concurrency limits are exceeded, additional jobs will be queued until sufficient capacity becomes available.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ That's it! You've successfully configured a Buildkite hosted macOS agent, built

Learn more about how to deploy apps like FlappyKite to the iOS App Store, which you can integrate into your pipeline builds, from the following resources:

- The [fastlane documentation on iOS App Store deployment](https://docs.fastlane.tools/getting-started/ios/appstore-deployment/), as well as [fastlane's Code Signing Guide Guide](https://docs.fastlane.tools/codesigning/getting-started/), and Buildkite's own [fastlane troubleshooting guide](/docs/agent/buildkite-hosted/macos/troubleshooting-fastlane).
- The [fastlane documentation on iOS App Store deployment](https://docs.fastlane.tools/getting-started/ios/appstore-deployment/), as well as [fastlane's Code Signing Guide](https://docs.fastlane.tools/codesigning/getting-started/), and Buildkite's own [fastlane troubleshooting guide](/docs/agent/buildkite-hosted/macos/troubleshooting-fastlane).
- The [Submit your iOS apps to the App Store](https://developer.apple.com/ios/submit/) page of the Apple Developer site.
2 changes: 1 addition & 1 deletion pages/agent/buildkite_hosted/network_security.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Network security

This page provides guidelines on how secure the network in which your Buildkite hosted agents operate, which includes network communications between the Buildkite hosted agents platform, the Buildkite platform itself, and other services external to these platforms.
This page provides guidelines on how to secure the network in which your Buildkite hosted agents operate, which includes network communications between the Buildkite hosted agents platform, the Buildkite platform itself, and other services external to these platforms.

The primary recommendation is to secure these communications with [OIDC](/docs/pipelines/security/oidc), since OIDC tokens issued by Buildkite hosted agents, obtained through the [`buildkite-agent oidc` command](/docs/agent/cli/reference/oidc), can be used to verify that network communications originate from those agents, which in turn are associated with a specific Buildkite organization, pipeline, or metadata associated with a pipeline's job. Using OIDC tokens to secure these communications means that communication can be done securely over the public internet with HTTPS, without the need for VPNs.

Expand Down
2 changes: 1 addition & 1 deletion pages/agent/buildkite_hosted/pipeline_migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ To migrate an existing pipeline to use a hosted agents queue, you must first ens
- Each step in the pipeline targets the required hosted agent queue.
- Source control settings have been updated to allow code access.

An additional process is required for private private repositories, see below for the relevant instructions.
An additional process is required for private repositories, see below for the relevant instructions.

## Private repository

Expand Down
2 changes: 1 addition & 1 deletion pages/agent/buildkite_hosted/terminal_access.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The terminal access feature is available to users who have/are any of the follow
- a [maintainer of the cluster](/docs/pipelines/security/clusters/manage#manage-maintainers-on-a-cluster) containing this pipeline
- a Buildkite organization administrator of this cluster

As a pipeline is being built, expand the relevant step and as its job is being built, select its **Open Terminal** button. A new browser window will open with terminal you can use to execute commands to investigate your hosted agent's environment, test script behavior and debug other issues.
As a pipeline is being built, expand the relevant step and as its job is being built, select its **Open Terminal** button. A new browser window will open with a terminal you can use to execute commands to investigate your hosted agent's environment, test script behavior and debug other issues.

<%= image "terminal-button-on-job.png", alt: "Accessing the SSH button through the Buildkite UI" %>

Expand Down
2 changes: 1 addition & 1 deletion pages/agent/cli/reference/lock.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ When running parallel jobs on the same host that need a shared setup, [`do`](#st

#### One-time locks example

In the following example, they key `test-env-setup` ensures that the test environment setup happens only once across multiple parallel jobs on the same host.
In the following example, the key `test-env-setup` ensures that the test environment setup happens only once across multiple parallel jobs on the same host.

```yml
steps:
Expand Down
2 changes: 1 addition & 1 deletion pages/agent/cli/reference/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ or with the `--tags` command line flag:
buildkite-agent start --tags "docker=true" --tags "ruby2=true"
```

or with the `BUILDKITE_AGENT_TAGS` an environment variable:
or with the `BUILDKITE_AGENT_TAGS` environment variable:

```
env BUILDKITE_AGENT_TAGS="docker=true,ruby2=true" buildkite-agent start
Expand Down
2 changes: 1 addition & 1 deletion pages/agent/cli/reference/step.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Use this command in your build scripts to update the step attributes. The follow

## Getting a step

Use this command in your build scripts to get the value of a particular attribute from a step. The following attributes values can be retrieved:
Use this command in your build scripts to get the value of a particular attribute from a step. The following attribute values can be retrieved:

* `agents`
* `command`
Expand Down
2 changes: 1 addition & 1 deletion pages/agent/cli/reference/tool.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# buildkite-agent tool

The Buildkite agent's `tool` subcommands are used for performing tasks that are expected to be called by a human as part of setting up a pipeline, rather than during the execution of a job. Any and all of these subcommand may be removed in the future into a separate CLI tool, so they should all be considered experimental.
The Buildkite agent's `tool` subcommands are used for performing tasks that are expected to be called by a human as part of setting up a pipeline, rather than during the execution of a job. Any and all of these subcommands may be removed in the future into a separate CLI tool, so they should all be considered experimental.

> 🛠 Experimental feature
> The `tool` subcommand may be removed from the Buildkite agent in the future.
Expand Down
4 changes: 2 additions & 2 deletions pages/agent/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Job lifecycle hooks are _sourced_ (see "A note on sourcing" for specifics) by th

You can define hooks in the following locations:

- **Agent hooks:** These exist in a pre-configured directory on the agent file system. For [self-hosted agents](/docs/agent/self-hosted), this directory created by your agent installer, and can be configured by the [`hooks-path`](/docs/agent/self-hosted/configure#hooks-path) setting. You can define both agent lifecycle hooks (self-hosted agents only) and job lifecycle hooks in the agent hooks location. Job lifecycle hooks defined here will run for every job the agent receives from any pipeline.
- **Agent hooks:** These exist in a pre-configured directory on the agent file system. For [self-hosted agents](/docs/agent/self-hosted), this directory is created by your agent installer, and can be configured by the [`hooks-path`](/docs/agent/self-hosted/configure#hooks-path) setting. You can define both agent lifecycle hooks (self-hosted agents only) and job lifecycle hooks in the agent hooks location. Job lifecycle hooks defined here will run for every job the agent receives from any pipeline.

**Note:** For [Buildkite hosted agents](/docs/agent/buildkite-hosted), the agent hooks location is available on [Linux hosted agents](/docs/agent/buildkite-hosted/linux/custom-base-images#create-an-agent-image-using-agent-hooks) only, and supports job lifecycle hooks only. Agent lifecycle hooks are not available on any Buildkite hosted agents. The agent hooks location is not available on [macOS hosted agents](/docs/agent/buildkite-hosted/macos).

Expand Down Expand Up @@ -248,7 +248,7 @@ export DEPLOY_TARGET="production"

## Job hooks on Windows

Jook hooks on Windows are only available to [self-hosted agents](/docs/agent/self-hosted), and not [Buildkite hosted agents](/docs/agent/buildkite-hosted).
Job hooks on Windows are only available to [self-hosted agents](/docs/agent/self-hosted), and not [Buildkite hosted agents](/docs/agent/buildkite-hosted).

Buildkite defaults to using the Batch shell on Windows. Buildkite agents running on Windows require that either:

Expand Down
2 changes: 1 addition & 1 deletion pages/agent/lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The Buildkite agent goes through several stages during its operation: starting u

## Receiving jobs

The methods by which agents receive jobs differs, depending on whether you are using [self-hosted](/docs/agent/self-hosted) or [Buildkite hosted](/docs/agent/buildkite-hosted) agents:
The methods by which agents receive jobs differ, depending on whether you are using [self-hosted](/docs/agent/self-hosted) or [Buildkite hosted](/docs/agent/buildkite-hosted) agents:

- For self-hosted agents, agents receive jobs either by polling Buildkite Pipelines (the Buildkite platform) for jobs, or by having jobs pushed to them from Buildkite Pipelines (through the _streaming job dispatch_ feature). See [Job dispatch](/docs/agent/self-hosted/configure/job-dispatch).
- For Buildkite hosted agents, Buildkite handles the job dispatch processes internally.
Expand Down
Loading
Loading