Skip to content

Commit c32bbe3

Browse files
committed
More agents with locks
1 parent 2eb16b7 commit c32bbe3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.buildkite/scripts/run-agents.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ cd "$AGENT_WORKSPACE"
1212
cp "$BUILDKITE_CONFIG_PATH" .
1313
CONFIG_FILE="$(basename "$BUILDKITE_CONFIG_PATH")"
1414

15+
# git-mirrors support is not included here because updating the git-mirror takes much more time than setting up a blank repo with sparse-checkout and such
16+
1517
cat <<EOF > "$CONFIG_FILE"
1618
build-path=$AGENT_WORKSPACE/builds
1719
hooks-path=$AGENT_WORKSPACE/hooks
@@ -28,5 +30,5 @@ grep 'token=' "$BUILDKITE_CONFIG_PATH" >> "$CONFIG_FILE"
2830

2931
unset ${!BUILDKITE_*}
3032

31-
# buildkite-agent start --spawn-per-cpu 1 --config "$CONFIG_FILE"
32-
buildkite-agent start --config "$CONFIG_FILE"
33+
buildkite-agent start --spawn-per-cpu 2 --config "$CONFIG_FILE"
34+
# buildkite-agent start --config "$CONFIG_FILE"

0 commit comments

Comments
 (0)