Skip to content

Commit eeafa2e

Browse files
committed
Grab token from config
1 parent 34030a5 commit eeafa2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.buildkite/scripts/run-agents.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ acquire-job=""
2424
tags-from-gcp="false"
2525
EOF
2626

27-
AGENT_TOKEN="$BUILDKITE_AGENT_TOKEN"
27+
grep 'token=' "$BUILDKITE_CONFIG_PATH" >> "$CONFIG_FILE"
2828

2929
unset ${!BUILDKITE_*}
3030

31-
HOME="$AGENT_WORKSPACE" buildkite-agent start --spawn-per-cpu 1 --config "$CONFIG_FILE" --token "$AGENT_TOKEN"
31+
HOME="$AGENT_WORKSPACE" buildkite-agent start --spawn-per-cpu 1 --config "$CONFIG_FILE"

0 commit comments

Comments
 (0)