Skip to content

Commit

Permalink
Clean up path length
Browse files Browse the repository at this point in the history
Instead of re-cloning to a checkout with a shorter path,
we rename the existing BK checkout.
  • Loading branch information
dliappis committed Jan 15, 2024
1 parent c6df1eb commit 798ff24
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .buildkite/scripts/build.ps1
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
cd c:\users\buildkite
git clone -v -- git@github.com:elastic/elastic-stack-installers.git esi
# workaround path limitation for max 248 characters
# example: https://buildkite.com/elastic/elastic-stack-installers/builds/3104#018c5e1b-23a7-4330-ad5d-4acc69157822/74-180
cd ..
Rename-Item -Path .\elastic-stack-installers -NewName esi
cd esi
git clean -ffxdq
git fetch -v --prune -- origin refs/pull/${env:BUILDKITE_PULL_REQUEST}/head
git checkout -f ${env:BUILDKITE_COMMIT}
git clean -ffxdq

# Read the stack version from build properties
[xml]$xml = Get-Content -Path "Directory.Build.props"
Expand Down

0 comments on commit 798ff24

Please sign in to comment.