Fix location of prereqs/packages/archive during VMR CI (#15498)

This commit is contained in:
Přemek Vysoký 2023-02-09 19:19:09 +01:00 committed by GitHub
parent e035eef6c8
commit ca1b29d7bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -145,7 +145,7 @@ jobs:
inputs:
SourceFolder: $(Pipeline.Workspace)/${{ parameters.reuseBuildArtifactsFrom }}_${{ parameters.architecture }}_Artifacts
Contents: '*.tar.gz'
TargetFolder: ${{ variables.sourcesPath }}/packages/archive/
TargetFolder: ${{ variables.sourcesPath }}/prereqs/packages/archive/
- script: |
set -x
@ -154,7 +154,7 @@ jobs:
docker run --rm -v "$(sourcesPath):/vmr" -w /vmr ${{ parameters.container }} ./prep.sh
else
mkdir $(sourcesPath)/.dotnet
previousSdkPath="$(sourcesPath)/packages/archive/dotnet-sdk-*.tar.gz"
previousSdkPath="$(sourcesPath)/prereqs/packages/archive/dotnet-sdk-*.tar.gz"
eval tar -ozxf "$previousSdkPath" -C "$(sourcesPath)/.dotnet"
eval rm -f "$previousSdkPath"
fi