From b28d13078783d96129632eba65242a846d8975df Mon Sep 17 00:00:00 2001 From: Mikhail Goncharov Date: Fri, 12 Mar 2021 13:48:49 +0100 Subject: [PATCH] fix cloning of scripts directory --- scripts/windows_agent_bootstrap.ps1 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/windows_agent_bootstrap.ps1 b/scripts/windows_agent_bootstrap.ps1 index 3d538ed..473d5ab 100644 --- a/scripts/windows_agent_bootstrap.ps1 +++ b/scripts/windows_agent_bootstrap.ps1 @@ -62,10 +62,8 @@ if ($sdd) { Add-MpPreference -ExclusionPath "C:\ws" } -# Clone scripts repo (this one) -git clone https://github.com/google/llvm-premerge-checks.git "c:\llvm-premerge-checks" -Write-Host "TODO: check that source is cloned" -pause +# Clone scripts repo. Restarting in a new session to pick up profile updates. +powershell -command 'git clone https://github.com/google/llvm-premerge-checks.git "c:\llvm-premerge-checks"' # create folder for credentials New-Item -Path "C:\" -Name "credentials" -ItemType "directory" @@ -75,6 +73,7 @@ $Env:buildkiteAgentToken = "" $Env:BUILDKITE_AGENT_NAME= "NAME" $Env:BUILDKITE_AGENT_TAGS = "queue=windows,name=NAME" $Env:CONDUIT_TOKEN = ""' +Write-Host "Open editor to set agent options..." Start-Process -FilePath "notepad" -Wait -Args "c:\credentials\buildkite-env.ps1" # Add task to start agent after restart.