[release/8.0.1xx] Avoid attempting to download from external URIs in Product Source Build mode (#17237) (#17239)
This commit is contained in:
parent
2e92138a34
commit
01aabf59be
1 changed files with 14 additions and 9 deletions
|
@ -373,20 +373,25 @@
|
|||
<ShouldDownload>%(ComponentToDownload.ShouldDownload)</ShouldDownload>
|
||||
<DownloadDestination>%(ComponentToDownload.DownloadDestination)</DownloadDestination>
|
||||
</UrisToDownload>
|
||||
<UrisToDownload Include="$([System.String]::Copy('%(ComponentToDownload.BaseUrl)').Replace($(PublicBaseURL), 'https://dotnetbuilds.blob.core.windows.net/public/'))/%(ComponentToDownload.DownloadFileName)" Condition="'%(ComponentToDownload.ShouldDownload)' == 'true'">
|
||||
</ItemGroup>
|
||||
|
||||
<!-- If building in product source build mode, there is no need to attempt the external URIs. These are not desired,
|
||||
and won't work anyway because the source build file URI doesn't use the same structure as the storage accounts.
|
||||
For example, the dotnetbuilds uri for 'file:///vmr/dotnet2/artifacts/obj/x64/Release/blob-feed/assets//aspnetcore_base_runtime.version'
|
||||
would end up 'https://dotnetbuilds.blob.core.windows.net/public//dotnet-runtime-8.0.0-rc.1.23381.3-centos.8-x64.tar.gz'. This is
|
||||
missing the runtime version number directory. -->
|
||||
<ItemGroup Condition="'$(DotNetBuildFromSourceFlavor)' != 'Product'">
|
||||
<UrisToDownload Include="$([System.String]::Copy('%(ComponentToDownload.BaseUrl)').Replace($(PublicBaseURL), 'https://dotnetbuilds.blob.core.windows.net/public/'))/%(ComponentToDownload.DownloadFileName)"
|
||||
Condition="'%(ComponentToDownload.ShouldDownload)' == 'true'">
|
||||
<ShouldDownload>%(ComponentToDownload.ShouldDownload)</ShouldDownload>
|
||||
<DownloadDestination>%(ComponentToDownload.DownloadDestination)</DownloadDestination>
|
||||
</UrisToDownload>
|
||||
<UrisToDownload Include="%(ComponentToDownload.PrivateBaseUrl)/%(ComponentToDownload.DownloadFileName)" Condition="'%(ComponentToDownload.ShouldDownload)' == 'true' and '$(DotNetRuntimeSourceFeedKey)' != ''">
|
||||
<UrisToDownload Include="%(ComponentToDownload.PrivateBaseUrl)/%(ComponentToDownload.DownloadFileName)"
|
||||
Condition="'%(ComponentToDownload.ShouldDownload)' == 'true' and '$(DotNetRuntimeSourceFeedKey)' != ''">
|
||||
<ShouldDownload>%(ComponentToDownload.ShouldDownload)</ShouldDownload>
|
||||
<DownloadDestination>%(ComponentToDownload.DownloadDestination)</DownloadDestination>
|
||||
<token>$(DotNetRuntimeSourceFeedKey)</token>
|
||||
</UrisToDownload>
|
||||
<UrisToDownload Include="$([System.String]::Copy('%(ComponentToDownload.PrivateBaseUrl)').Replace($(InternalBaseURL), 'https://dotnetbuilds.blob.core.windows.net/internal/'))/%(ComponentToDownload.DownloadFileName)" Condition="'%(ComponentToDownload.ShouldDownload)' == 'true' and '$(DotNetRuntimeSourceFeedKey)' != ''">
|
||||
<ShouldDownload>%(ComponentToDownload.ShouldDownload)</ShouldDownload>
|
||||
<DownloadDestination>%(ComponentToDownload.DownloadDestination)</DownloadDestination>
|
||||
<token>$(dotnetbuilds-internal-container-read-token-base64)</token>
|
||||
</UrisToDownload>
|
||||
</ItemGroup>
|
||||
|
||||
<DownloadFile Condition=" '@(UrisToDownload)' != '' and %(ShouldDownload)"
|
||||
|
|
Loading…
Reference in a new issue