diff --git a/scripts/windows_agent_start.ps1 b/scripts/windows_agent_start.ps1 index e97da87..cdb9e86 100644 --- a/scripts/windows_agent_start.ps1 +++ b/scripts/windows_agent_start.ps1 @@ -17,7 +17,13 @@ # TODO: add parameter to bootstrap buildkite or jenkins -$NAME="agent-windows-jenkins" +param( + [Parameter(Mandatory=$true)] + [ValidateSet("buildkite", "jenkins")] + [string]$master +) + +$NAME="agent-windows-${master}" $IMAGE="gcr.io/llvm-premerge-checks/${NAME}" Write-Output "Authenticating docker..."