From 83180811bde9adfe38a00896753d94b13909a70e Mon Sep 17 00:00:00 2001 From: Alexey Pustovalov Date: Tue, 22 Oct 2024 14:38:58 +0900 Subject: [PATCH] Fixed download PCRE library --- Dockerfiles/build-base/windows/Dockerfile.agent | 2 +- Dockerfiles/build-base/windows/Dockerfile.agent2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfiles/build-base/windows/Dockerfile.agent b/Dockerfiles/build-base/windows/Dockerfile.agent index c6db05fb7..3d2ba9586 100644 --- a/Dockerfiles/build-base/windows/Dockerfile.agent +++ b/Dockerfiles/build-base/windows/Dockerfile.agent @@ -150,7 +150,7 @@ RUN Set-Location -Path $env:SystemDrive\.; ` Set-Location -Path $env:BUILD_SRC; ` ` Write-Host ('Downloading {0} ...' -f $env:PCRE_URL); ` - (new-object System.Net.WebClient).DownloadFile("""$env:PCRE_URL""","""$env:TEMP\pcre.zip"""); ` + Invoke-WebRequest -UserAgent 'Wget' -Uri $env:PCRE_URL -OutFile $env:TEMP\pcre.zip; ` ` $sha256 = '5B709AA45EA3B8BB73052947200AD187F651A2049158FB5BBFED329E4322A977'; ` $d_sha256 = (Get-FileHash $env:TEMP\pcre.zip -Algorithm sha256).Hash; ` diff --git a/Dockerfiles/build-base/windows/Dockerfile.agent2 b/Dockerfiles/build-base/windows/Dockerfile.agent2 index 894856256..578641f0c 100644 --- a/Dockerfiles/build-base/windows/Dockerfile.agent2 +++ b/Dockerfiles/build-base/windows/Dockerfile.agent2 @@ -201,7 +201,7 @@ RUN Set-Location -Path $env:SystemDrive\.; ` Set-Location -Path $env:BUILD_SRC; ` ` Write-Host ('Downloading {0} ...' -f $env:PCRE_URL); ` - (new-object System.Net.WebClient).DownloadFile("""$env:PCRE_URL""","""$env:TEMP\pcre.zip"""); ` + Invoke-WebRequest -UserAgent 'Wget' -Uri $env:PCRE_URL -OutFile $env:TEMP\pcre.zip; ` ` $sha256 = '5B709AA45EA3B8BB73052947200AD187F651A2049158FB5BBFED329E4322A977'; ` $d_sha256 = (Get-FileHash $env:TEMP\pcre.zip -Algorithm sha256).Hash; `