From c6bd2a3bccee72369686a7a85bd469171157060a Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Tue, 25 Oct 2022 16:21:40 -0400 Subject: [PATCH] Temporarily lock windows buildkite-agent version to `v3.39.0` This is to work around the issue discussed in [0], and uses the version-locking mechanism created in [1] [0]: https://github.com/buildkite/agent/issues/1804 [1]: https://github.com/buildkite/agent/pull/1805 --- .../setup_scripts/0-02-install-buildkite-agent.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/windows-kvm/buildkite-worker/setup_scripts/0-02-install-buildkite-agent.ps1 b/windows-kvm/buildkite-worker/setup_scripts/0-02-install-buildkite-agent.ps1 index f11ed2c..8d7228f 100644 --- a/windows-kvm/buildkite-worker/setup_scripts/0-02-install-buildkite-agent.ps1 +++ b/windows-kvm/buildkite-worker/setup_scripts/0-02-install-buildkite-agent.ps1 @@ -7,7 +7,8 @@ if ($env:buildkiteAgentQueues -eq $null) { Write-Output " -> Installing buildkite-agent" # Note that our `secrets.ps1` file is supposed to set `$env:buildkiteAgentToken` first -iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/buildkite/agent/main/install.ps1')) +$env:buildkiteAgentUrl = "https://github.com/buildkite/agent/releases/download/v3.39.0/buildkite-agent-windows-amd64-3.39.0.zip" +iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/staticfloat/agent/patch-1/install.ps1')) # Create service to auto-start buildkite & nssm install buildkite-agent "C:\Windows\System32\cmd.exe" "/C C:\buildkite-agent\bin\buildkite-agent.exe start & shutdown /s /t 0 /f /d p:4:1"