diff --git a/containers/agent-debian-testing-clang8-buildkite/start_agent.sh b/containers/agent-debian-testing-clang8-buildkite/start_agent.sh index 0ae5134..f78a16c 100755 --- a/containers/agent-debian-testing-clang8-buildkite/start_agent.sh +++ b/containers/agent-debian-testing-clang8-buildkite/start_agent.sh @@ -26,9 +26,6 @@ chown -R buildkite:buildkite "${CCACHE_PATH}" # TODO(kuhnel): wipe the disk(s) on startup -# set the token in the config file -sed -i -r s/token=\"[^\"]+\"/token=\"`cat /credentials/buildkite-token`\"/g /etc/buildkite-agent/buildkite-agent.cfg -sed -i -r s/build-path=\"[^\"]+\"/build-path=\"\/mnt\/disks\/ssd0\/agent\"/g /etc/buildkite-agent/buildkite-agent.cfg - # start the buildkite agent -buildkite-agent start --tags "os=linux" \ No newline at end of file +buildkite-agent start --tags "os=linux" --build-path=/mnt/disks/ssd0/agent \ + --token `cat /credentials/buildkite-token` \ No newline at end of file