2020-01-17 12:52:31 +01:00
|
|
|
$Env:buildkiteAgentToken = [IO.File]::ReadAllText("C:\credentials\buildkite-token.txt")
|
|
|
|
|
|
|
|
#Set-ExecutionPolicy Bypass -Scope Process -Force
|
|
|
|
iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/buildkite/agent/master/install.ps1'))
|
|
|
|
|
2020-02-06 14:05:46 +01:00
|
|
|
# use the name of the host machine as name for the agent in buildkite
|
|
|
|
$env:BUILDKITE_AGENT_NAME="win-vs17 $env:PARENT_HOSTNAME"
|
|
|
|
|
2020-01-17 12:52:31 +01:00
|
|
|
C:\buildkite-agent\bin\buildkite-agent.exe start --tags "os=windows"
|