Skip to content

Commit 99e5688

Browse files
committed
.buildkite: use assigned agent queue
BuildKite pipelines can specify an agent queue for builds. We can use this for separating build environments for different pipelines. This commit adds the agent queue settings to all steps. Signed-off-by: Samuel Karp <[email protected]>
1 parent 57448b6 commit 99e5688

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.buildkite/pipeline.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ steps:
2121
commands:
2222
- 'sudo ip tuntap add fc-test-tap${BUILDKITE_BUILD_NUMBER} mode tap user $(sudo id -u buildkite-agent)'
2323
- 'sudo ip tuntap add fc-root-tap${BUILDKITE_BUILD_NUMBER} mode tap user $(sudo id -u buildkite-agent)'
24+
agents:
25+
queue: "${BUILDKITE_AGENT_META_DATA_QUEUE:-default}"
2426

2527
# We use a "wait" step here, because Go's module logic freaks out when
2628
# multiple go builds are downloading to the same cache.
@@ -37,6 +39,8 @@ steps:
3739
- 'ln -s /usr/local/bin/firecracker-v0.15.0 testdata/firecracker'
3840
- 'ln -s /usr/local/bin/jailer-v0.15.0 testdata/jailer'
3941
- "DISABLE_ROOT_TESTS=true FC_TEST_TAP=fc-test-tap${BUILDKITE_BUILD_NUMBER} make test EXTRAGOARGS='-v -count=1'"
42+
agents:
43+
queue: "${BUILDKITE_AGENT_META_DATA_QUEUE:-default}"
4044

4145
- label: ':hammer: root tests'
4246
commands:
@@ -55,4 +59,6 @@ steps:
5559
commands:
5660
- 'sudo ip tuntap del fc-test-tap${BUILDKITE_BUILD_NUMBER} mode tap'
5761
- 'sudo ip tuntap del fc-root-tap${BUILDKITE_BUILD_NUMBER} mode tap'
62+
agents:
63+
queue: "${BUILDKITE_AGENT_META_DATA_QUEUE:-default}"
5864

0 commit comments

Comments
 (0)