mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-19 04:45:07 -04:00
Update runbld in windows 2012 images via packer_cache (#98887)
Fixes #97998
Use the windows packer_cache script to update the runbld binary to the
latest version.
Tested in this PR in an older commit with these changes:
ab89ed094c
https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+pull-request+packaging-tests-windows/354/PACKAGING_TASK=default-windows-archive,os=windows-2012-r2/console
This commit is contained in:
parent
cd62bc84d7
commit
4c2d253b7f
1 changed files with 16 additions and 0 deletions
16
.ci/packer_cache.ps1
Executable file
16
.ci/packer_cache.ps1
Executable file
|
@ -0,0 +1,16 @@
|
|||
$RUNBLD_DIR = 'C:\Program Files\runbld\src\runbld-7.0.3'
|
||||
$RUNBLD = Join-Path $RUNBLD_DIR 'runbld'
|
||||
|
||||
# Check if 7.0.3 doesn't already exist
|
||||
if (-not (Test-Path $RUNBLD)) {
|
||||
New-Item -Path $RUNBLD_DIR -ItemType Directory -Force
|
||||
Invoke-WebRequest -Uri 'http://packages.elasticsearch.org.s3.amazonaws.com/infra/runbld-7.0.3' -OutFile $RUNBLD
|
||||
|
||||
$RUNBLD_HARDLINK_DIR = 'C:\Program Files\infra\bin'
|
||||
$RUNBLD_HARDLINK = Join-Path $RUNBLD_HARDLINK_DIR 'runbld'
|
||||
|
||||
Remove-Item -Path $RUNBLD_HARDLINK -Force
|
||||
New-Item -Path $RUNBLD_HARDLINK_DIR -ItemType Directory -Force
|
||||
|
||||
fsutil hardlink create $RUNBLD_HARDLINK $RUNBLD
|
||||
}
|
Loading…
Add table
Reference in a new issue