Skip to content

Commit 0563473

Browse files
authored
Add internal runtime args to source build template (#7587)
These need to be passed through to correct restore an internal runtime
1 parent 52058eb commit 0563473

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

eng/common/templates/steps/source-build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ steps:
2929
officialBuildArgs='/p:DotNetPublishUsingPipelines=true /p:OfficialBuildId=$(BUILD.BUILDNUMBER)'
3030
fi
3131
32+
internalRuntimeDownloadArgs=
33+
if [ '${{ ne(variables['System.TeamProject'], 'public') }}' = 'True' ]; then
34+
internalRuntimeDownloadArgs='--runtime-source-feed https://dotnetclimsrc.blob.core.windows.net/dotnet --runtime-source-feed-key $(dotnetclimsrc-read-sas-token-base64)'
35+
fi
36+
3237
targetRidArgs=
3338
if [ '${{ parameters.platform.targetRID }}' != '' ]; then
3439
targetRidArgs='/p:TargetRid=${{ parameters.platform.targetRID }}'
@@ -43,6 +48,7 @@ steps:
4348
--configuration $buildConfig \
4449
--restore --build --pack $publishArgs -bl \
4550
$officialBuildArgs \
51+
$internalRuntimeDownloadArgs \
4652
$targetRidArgs \
4753
/p:SourceBuildNonPortable=${{ parameters.platform.nonPortable }} \
4854
/p:ArcadeBuildFromSource=true

0 commit comments

Comments
 (0)