1
0
Fork 0

named the buildkite windows agents

This commit is contained in:
Christian Kühnel 2020-02-06 14:05:46 +01:00
parent 9e431d4ab9
commit 39319ab89d
2 changed files with 3 additions and 4 deletions

View file

@ -9,9 +9,5 @@ FROM gcr.io/llvm-premerge-checks/agent-windows
ARG token
ENV BUILDKITE_BUILD_PATH=C:\ws\bk
#TODO(kuhnel): use the host machine name in the agent name.
# This needs to be set during run time in the start_agent.ps1 script.
ENV BUILDKITE_AGENT_NAME=win-vs17
COPY start_agent.ps1 C:\scripts\
CMD "powershell C:\scripts\start_agent.ps1"

View file

@ -3,4 +3,7 @@ $Env:buildkiteAgentToken = [IO.File]::ReadAllText("C:\credentials\buildkite-toke
#Set-ExecutionPolicy Bypass -Scope Process -Force
iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/buildkite/agent/master/install.ps1'))
# use the name of the host machine as name for the agent in buildkite
$env:BUILDKITE_AGENT_NAME="win-vs17 $env:PARENT_HOSTNAME"
C:\buildkite-agent\bin\buildkite-agent.exe start --tags "os=windows"