From 8c2f6aa9f128176ab66768ed96156427ed6caff0 Mon Sep 17 00:00:00 2001 From: Mikhail Goncharov Date: Wed, 6 Sep 2023 15:52:12 +0000 Subject: [PATCH] update win startup --- containers/buildkite-windows/start_agent.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/containers/buildkite-windows/start_agent.ps1 b/containers/buildkite-windows/start_agent.ps1 index 04bde57..bdf65d5 100644 --- a/containers/buildkite-windows/start_agent.ps1 +++ b/containers/buildkite-windows/start_agent.ps1 @@ -2,10 +2,11 @@ git clone https://github.com/google/llvm-premerge-checks.git c:\llvm-premerge-checks # Checkout path is set to a fixed short value (e.g. c:\ws\src) to keep paths # short as many tools break on Windows with paths longer than 250. +if ($null -eq $env:BUILDKITE_BUILD_PATH) { $env:BUILDKITE_BUILD_PATH = 'c:\ws' } $env:BUILDKITE_BUILD_CHECKOUT_PATH = "$env:BUILDKITE_BUILD_PATH\src" # Exclude build path from Windows Defender. -Add-MpPreference -ExclusionPath "$env:BUILDKITE_BUILD_PATH" +Set-MpPreference -DisableRealtimeMonitoring $true # Install Buildkite agent. iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/buildkite/agent/master/install.ps1'))