summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-03-09 11:26:50 -0700
committerTim Smith <tsmith84@gmail.com>2020-03-16 13:03:35 -0700
commit492e7548bd8e3fcc1758a1712f2a53d202fa6fce (patch)
tree955d4ac2d35c7196013f647594db8cbe60fbea30
parent7b3f4071d5a392dfbbb56b6c453d71526f7cdf82 (diff)
downloadchef-492e7548bd8e3fcc1758a1712f2a53d202fa6fce.tar.gz
Use the aws cli to download ruby in the windows tests
This should fix our busted windows tests Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--scripts/bk_tests/bk_win_functional.ps13
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/bk_tests/bk_win_functional.ps1 b/scripts/bk_tests/bk_win_functional.ps1
index 992dc371d9..59c2cf30c6 100644
--- a/scripts/bk_tests/bk_win_functional.ps1
+++ b/scripts/bk_tests/bk_win_functional.ps1
@@ -13,8 +13,7 @@ Remove-Item -Path C:\ProgramData\chocolatey\bin\choco.exe -ErrorAction SilentlyC
$ErrorActionPreference = 'Stop'
echo "Downloading Ruby + DevKit"
-[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
-(New-Object System.Net.WebClient).DownloadFile('https://public-cd-buildkite-cache.s3-us-west-2.amazonaws.com/rubyinstaller-devkit-2.6.5-1-x64.exe', 'c:\\rubyinstaller-devkit-2.6.5-1-x64.exe')
+aws s3 cp s3://public-cd-buildkite-cache/rubyinstaller-devkit-2.6.5-1-x64.exe c:/rubyinstaller-devkit-2.6.5-1-x64.exe
echo "Installing Ruby + DevKit"
Start-Process c:\rubyinstaller-devkit-2.6.5-1-x64.exe -ArgumentList '/verysilent /dir=C:\\ruby26' -Wait