Skip to content

Commit 6a3f701

Browse files
committed
Troubleshooting
1 parent a518bf4 commit 6a3f701

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.buildkite/hooks/pre-command.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Shorten BUILDKITE_MESSAGE if needed to avoid filling the Windows env var buffer
22
$env:BUILDKITE_MESSAGE = $env:BUILDKITE_MESSAGE.Substring(0, [System.Math]::Min(2048, $env:BUILDKITE_MESSAGE.Length))
33
choco install awscli jq -y
4-
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
4+
Write-Output "Env Path Before: $env:Path"
5+
$env:Path += ";C:\Program Files\Amazon\AWSCLIV2\"
6+
Write-Output "Env Path After: $env:Path"
57
Write-Output "AWS CLI installed. Version:"
68
aws --version

.buildkite/scripts/install-awscli.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,7 @@ elif [[ "$OSTYPE" == "darwin" ]]; then
2626
fi
2727

2828
hash -r
29+
echo "Shell: $SHELL"
30+
export PATH=/usr/local/bin:$PATH
2931
echo "AWS CLI installed. Version:"
3032
aws --version

0 commit comments

Comments
 (0)