From d91c7b653a4dfb97fa2748a6c0578610a4183a36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=BChnel?= Date: Thu, 20 Feb 2020 15:24:09 +0000 Subject: [PATCH] flag to pick master --- scripts/windows_agent_start.ps1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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..."