@@ -38,6 +38,19 @@ variables:
38
38
value : ' '
39
39
- name : _SignType
40
40
value : ' '
41
+ - name : _InternalRuntimeDownloadArgs
42
+ value : ' '
43
+ - name : _InternalRuntimeDownloadCodeSignArgs
44
+ value : ' '
45
+ - ${{ if eq(variables['System.TeamProject'], 'internal') }} :
46
+ - group : DotNet-MSRC-Storage
47
+ - name : _InternalRuntimeDownloadArgs
48
+ value : -DotNetRuntimeSourceFeed https://dotnetclimsrc.blob.core.windows.net/dotnet -DotNetRuntimeSourceFeedKey $(dotnetclimsrc-read-sas-token-base64) /p:DotNetAssetRootAccessTokenSuffix='$(dotnetclimsrc-read-sas-token-base64)'
49
+ # The code signing doesn't use the aspnet build scripts, so the msbuild parameers have
50
+ # to be passed directly. This is awkward, since we pass the same info above, but we have
51
+ # to have it in two different forms
52
+ - name : _InternalRuntimeDownloadCodeSignArgs
53
+ value : /p:DotNetRuntimeSourceFeed=https://dotnetclimsrc.blob.core.windows.net/dotnet /p:DotNetRuntimeSourceFeedKey=$(dotnetclimsrc-read-sas-token-base64)
41
54
- ${{ if eq(variables['System.TeamProject'], 'internal') }} :
42
55
- ${{ if ne(variables['Build.Reason'], 'PullRequest') }} :
43
56
# DotNet-Blob-Feed provides: dotnetfeed-storage-access-key-1
@@ -78,7 +91,15 @@ stages:
78
91
jobDisplayName : Code check
79
92
agentOs : Windows
80
93
steps :
81
- - powershell : ./eng/scripts/CodeCheck.ps1 -ci
94
+ - ${{ if ne(variables['System.TeamProject'], 'public') }} :
95
+ - task : PowerShell@2
96
+ displayName : Setup Private Feeds Credentials
97
+ inputs :
98
+ filePath : $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1
99
+ arguments : -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
100
+ env :
101
+ Token : $(dn-bot-dnceng-artifact-feeds-rw)
102
+ - powershell : ./eng/scripts/CodeCheck.ps1 -ci $(_InternalRuntimeDownloadArgs)
82
103
displayName : Run eng/scripts/CodeCheck.ps1
83
104
artifacts :
84
105
- name : Code_Check_Logs
@@ -104,6 +125,14 @@ stages:
104
125
# This is intentional to workaround https://github.com/dotnet/arcade/issues/1957 which always re-submits for code-signing, even
105
126
# if they have already been signed. This results in slower builds due to re-submitting the same .nupkg many times for signing.
106
127
# The sign settings have been configured to
128
+ - ${{ if ne(variables['System.TeamProject'], 'public') }} :
129
+ - task : PowerShell@2
130
+ displayName : Setup Private Feeds Credentials
131
+ inputs :
132
+ filePath : $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1
133
+ arguments : -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
134
+ env :
135
+ Token : $(dn-bot-dnceng-artifact-feeds-rw)
107
136
108
137
- script : ./build.cmd
109
138
-ci
@@ -113,6 +142,7 @@ stages:
113
142
-buildNative
114
143
/bl:artifacts/log/build.x64.binlog
115
144
$(_BuildArgs)
145
+ $(_InternalRuntimeDownloadArgs)
116
146
displayName : Build x64
117
147
118
148
# Build the x86 shared framework
@@ -128,6 +158,7 @@ stages:
128
158
/p:OnlyPackPlatformSpecificPackages=true
129
159
/bl:artifacts/log/build.x86.binlog
130
160
$(_BuildArgs)
161
+ $(_InternalRuntimeDownloadArgs)
131
162
displayName : Build x86
132
163
133
164
# This is in a separate build step with -forceCoreMsbuild to workaround MAX_PATH limitations - https://github.com/Microsoft/msbuild/issues/53
@@ -136,6 +167,7 @@ stages:
136
167
-pack
137
168
-noBuildDeps
138
169
$(_BuildArgs)
170
+ $(_InternalRuntimeDownloadArgs)
139
171
displayName : Build SiteExtension
140
172
141
173
# This runs code-signing on all packages, zips, and jar files as defined in build/CodeSign.targets. If https://github.com/dotnet/arcade/issues/1957 is resolved,
@@ -161,6 +193,7 @@ stages:
161
193
/p:AssetManifestFileName=aspnetcore-win-x64-x86.xml
162
194
$(_BuildArgs)
163
195
$(_PublishArgs)
196
+ $(_InternalRuntimeDownloadArgs)
164
197
/p:PublishInstallerBaseVersion=true
165
198
displayName : Build Installers
166
199
@@ -190,6 +223,7 @@ stages:
190
223
/p:AssetManifestFileName=aspnetcore-win-arm.xml
191
224
$(_BuildArgs)
192
225
$(_PublishArgs)
226
+ $(_InternalRuntimeDownloadArgs)
193
227
installNodeJs : false
194
228
installJdk : false
195
229
artifacts :
@@ -215,6 +249,7 @@ stages:
215
249
-p:AssetManifestFileName=aspnetcore-MacOS_x64.xml
216
250
$(_BuildArgs)
217
251
$(_PublishArgs)
252
+ $(_InternalRuntimeDownloadArgs)
218
253
installNodeJs : false
219
254
installJdk : false
220
255
artifacts :
@@ -234,6 +269,14 @@ stages:
234
269
jobDisplayName : " Build: Linux x64"
235
270
agentOs : Linux
236
271
steps :
272
+ - ${{ if ne(variables['System.TeamProject'], 'public') }} :
273
+ - task : Bash@3
274
+ displayName : Setup Private Feeds Credentials
275
+ inputs :
276
+ filePath : $(Build.SourcesDirectory)/eng/common/SetupNugetSources.sh
277
+ arguments : $(Build.SourcesDirectory)/NuGet.config $Token
278
+ env :
279
+ Token : $(dn-bot-dnceng-artifact-feeds-rw)
237
280
- script : ./build.sh
238
281
--ci
239
282
--arch x64
@@ -244,6 +287,7 @@ stages:
244
287
-p:OnlyPackPlatformSpecificPackages=true
245
288
-bl:artifacts/log/build.linux-x64.binlog
246
289
$(_BuildArgs)
290
+ $(_InternalRuntimeDownloadArgs)
247
291
displayName : Run build.sh
248
292
- script : |
249
293
git clean -xfd src/**/obj/
@@ -257,7 +301,8 @@ stages:
257
301
-p:BuildRuntimeArchive=false \
258
302
-p:LinuxInstallerType=deb \
259
303
-bl:artifacts/log/build.deb.binlog \
260
- $(_BuildArgs)
304
+ $(_BuildArgs) \
305
+ $(_InternalRuntimeDownloadArgs)
261
306
displayName: Build Debian installers
262
307
- script : |
263
308
git clean -xfd src/**/obj/
@@ -273,7 +318,8 @@ stages:
273
318
-bl:artifacts/log/build.rpm.binlog \
274
319
-p:AssetManifestFileName=aspnetcore-Linux_x64.xml \
275
320
$(_BuildArgs) \
276
- $(_PublishArgs)
321
+ $(_PublishArgs) \
322
+ $(_InternalRuntimeDownloadArgs)
277
323
displayName: Build RPM installers
278
324
installNodeJs : false
279
325
installJdk : false
@@ -304,6 +350,7 @@ stages:
304
350
-p:AssetManifestFileName=aspnetcore-Linux_arm.xml
305
351
$(_BuildArgs)
306
352
$(_PublishArgs)
353
+ $(_InternalRuntimeDownloadArgs)
307
354
installNodeJs : false
308
355
installJdk : false
309
356
artifacts :
@@ -333,6 +380,7 @@ stages:
333
380
-p:AssetManifestFileName=aspnetcore-Linux_arm64.xml
334
381
$(_BuildArgs)
335
382
$(_PublishArgs)
383
+ $(_InternalRuntimeDownloadArgs)
336
384
installNodeJs : false
337
385
installJdk : false
338
386
artifacts :
@@ -365,6 +413,7 @@ stages:
365
413
-p:AssetManifestFileName=aspnetcore-Linux_musl_x64.xml
366
414
$(_BuildArgs)
367
415
$(_PublishArgs)
416
+ $(_InternalRuntimeDownloadArgs)
368
417
installNodeJs : false
369
418
installJdk : false
370
419
artifacts :
@@ -397,6 +446,7 @@ stages:
397
446
-p:AssetManifestFileName=aspnetcore-Linux_musl_arm64.xml
398
447
$(_BuildArgs)
399
448
$(_PublishArgs)
449
+ $(_InternalRuntimeDownloadArgs)
400
450
installNodeJs : false
401
451
installJdk : false
402
452
artifacts :
@@ -417,7 +467,7 @@ stages:
417
467
jobDisplayName : " Test: Windows Server 2016 x64"
418
468
agentOs : Windows
419
469
isTestingJob : true
420
- buildArgs : -all -pack -test -BuildNative "/p:SkipIISNewHandlerTests=true /p:SkipIISTests=true /p:SkipIISExpressTests=true /p:SkipIISNewShimTests=true /p:RunTemplateTests=false"
470
+ buildArgs : -all -pack -test -BuildNative "/p:SkipIISNewHandlerTests=true /p:SkipIISTests=true /p:SkipIISExpressTests=true /p:SkipIISNewShimTests=true /p:RunTemplateTests=false" $(_InternalRuntimeDownloadArgs)
421
471
beforeBuild :
422
472
- powershell : " & ./src/Servers/IIS/tools/UpdateIISExpressCertificate.ps1; & ./src/Servers/IIS/tools/update_schema.ps1"
423
473
displayName : Setup IISExpress test certificates and schema
@@ -441,7 +491,15 @@ stages:
441
491
agentOs : Windows
442
492
isTestingJob : true
443
493
steps :
444
- - script : ./build.cmd -ci -all -pack
494
+ - ${{ if ne(variables['System.TeamProject'], 'public') }} :
495
+ - task : PowerShell@2
496
+ displayName : Setup Private Feeds Credentials
497
+ inputs :
498
+ filePath : $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1
499
+ arguments : -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
500
+ env :
501
+ Token : $(dn-bot-dnceng-artifact-feeds-rw)
502
+ - script : ./build.cmd -ci -all -pack $(_InternalRuntimeDownloadArgs)
445
503
displayName : Build Repo
446
504
- script : ./src/ProjectTemplates/build.cmd -ci -pack -NoRestore -NoBuilddeps "/p:RunTemplateTests=true /bl:artifacts/log/template.pack.binlog"
447
505
displayName : Pack Templates
@@ -462,7 +520,7 @@ stages:
462
520
jobDisplayName : " Test: macOS 10.13"
463
521
agentOs : macOS
464
522
isTestingJob : true
465
- buildArgs : --all --test "/p:RunTemplateTests=false"
523
+ buildArgs : --all --test "/p:RunTemplateTests=false" $(_InternalRuntimeDownloadArgs)
466
524
beforeBuild :
467
525
- bash : " ./eng/scripts/install-nginx-mac.sh"
468
526
displayName : Installing Nginx
@@ -489,7 +547,7 @@ stages:
489
547
jobDisplayName : " Test: Ubuntu 16.04 x64"
490
548
agentOs : Linux
491
549
isTestingJob : true
492
- buildArgs : --all --test "/p:RunTemplateTests=false"
550
+ buildArgs : --all --test "/p:RunTemplateTests=false" $(_InternalRuntimeDownloadArgs)
493
551
beforeBuild :
494
552
- bash : " ./eng/scripts/install-nginx-linux.sh"
495
553
displayName : Installing Nginx
@@ -539,6 +597,14 @@ stages:
539
597
version : 3.0.100
540
598
installationPath : $(DotNetCoreSdkDir)
541
599
includePreviewVersions : true
600
+ - ${{ if ne(variables['System.TeamProject'], 'public') }} :
601
+ - task : Bash@3
602
+ displayName : Setup Private Feeds Credentials
603
+ inputs :
604
+ filePath : $(Build.SourcesDirectory)/eng/common/SetupNugetSources.sh
605
+ arguments : $(Build.SourcesDirectory)/NuGet.config $Token
606
+ env :
607
+ Token : $(dn-bot-dnceng-artifact-feeds-rw)
542
608
- script : ./eng/scripts/ci-source-build.sh --ci --configuration Release /p:BuildManaged=true /p:BuildNodeJs=false
543
609
displayName : Run ci-source-build.sh
544
610
- task : PublishBuildArtifacts@1
0 commit comments