From 06826a83100d9d5f814cc98e99036b27e12cc428 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=BChnel?= Date: Fri, 17 Jan 2020 15:50:52 +0100 Subject: [PATCH] using command line arguments --- .../agent-debian-testing-clang8-buildkite/start_agent.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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