@@ -32,13 +32,30 @@ variables:
32
32
- name : _DotNetValidationArtifactsCategory
33
33
value : .NETCORE
34
34
- ${{ if ne(variables['System.TeamProject'], 'internal') }} :
35
+ - name : _UseHelixOpenQueues
36
+ value : ' true'
35
37
- name : _BuildArgs
36
38
value : ' '
37
39
- name : _PublishArgs
38
40
value : ' '
39
41
- name : _SignType
40
42
value : ' '
43
+ - name : _InternalRuntimeDownloadArgs
44
+ value : ' '
45
+ - name : _InternalRuntimeDownloadCodeSignArgs
46
+ value : ' '
41
47
- ${{ if eq(variables['System.TeamProject'], 'internal') }} :
48
+ - group : DotNet-MSRC-Storage
49
+ - name : _InternalRuntimeDownloadArgs
50
+ value : -DotNetRuntimeSourceFeed https://dotnetclimsrc.blob.core.windows.net/dotnet -DotNetRuntimeSourceFeedKey $(dotnetclimsrc-read-sas-token-base64) /p:DotNetAssetRootAccessTokenSuffix='$(dotnetclimsrc-read-sas-token-base64)'
51
+ # The code signing doesn't use the aspnet build scripts, so the msbuild parameers have
52
+ # to be passed directly. This is awkward, since we pass the same info above, but we have
53
+ # to have it in two different forms
54
+ - name : _InternalRuntimeDownloadCodeSignArgs
55
+ value : /p:DotNetRuntimeSourceFeed=https://dotnetclimsrc.blob.core.windows.net/dotnet /p:DotNetRuntimeSourceFeedKey=$(dotnetclimsrc-read-sas-token-base64)
56
+ - group : DotNet-HelixApi-Access
57
+ - name : _UseHelixOpenQueues
58
+ value : ' false'
42
59
- ${{ if ne(variables['Build.Reason'], 'PullRequest') }} :
43
60
# DotNet-Blob-Feed provides: dotnetfeed-storage-access-key-1
44
61
# Publish-Build-Assets provides: MaestroAccessToken, BotAccount-dotnet-maestro-bot-PAT
@@ -63,7 +80,7 @@ variables:
63
80
- name : _BuildArgs
64
81
value : ' '
65
82
- name : _SignType
66
- valule : test
83
+ value : test
67
84
- name : _PublishArgs
68
85
value : ' '
69
86
# used for post-build phases, internal builds only
@@ -81,7 +98,15 @@ stages:
81
98
jobDisplayName : Code check
82
99
agentOs : Windows
83
100
steps :
84
- - powershell : ./eng/scripts/CodeCheck.ps1 -ci
101
+ - ${{ if ne(variables['System.TeamProject'], 'public') }} :
102
+ - task : PowerShell@2
103
+ displayName : Setup Private Feeds Credentials
104
+ inputs :
105
+ filePath : $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1
106
+ arguments : -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
107
+ env :
108
+ Token : $(dn-bot-dnceng-artifact-feeds-rw)
109
+ - powershell : ./eng/scripts/CodeCheck.ps1 -ci $(_InternalRuntimeDownloadArgs)
85
110
displayName : Run eng/scripts/CodeCheck.ps1
86
111
artifacts :
87
112
- name : Code_Check_Logs
@@ -108,6 +133,14 @@ stages:
108
133
# This is intentional to workaround https://github.com/dotnet/arcade/issues/1957 which always re-submits for code-signing, even
109
134
# if they have already been signed. This results in slower builds due to re-submitting the same .nupkg many times for signing.
110
135
# The sign settings have been configured to
136
+ - ${{ if ne(variables['System.TeamProject'], 'public') }} :
137
+ - task : PowerShell@2
138
+ displayName : Setup Private Feeds Credentials
139
+ inputs :
140
+ filePath : $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1
141
+ arguments : -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
142
+ env :
143
+ Token : $(dn-bot-dnceng-artifact-feeds-rw)
111
144
112
145
- script : ./build.cmd
113
146
-ci
@@ -117,6 +150,7 @@ stages:
117
150
-buildNative
118
151
/bl:artifacts/log/build.x64.binlog
119
152
$(_BuildArgs)
153
+ $(_InternalRuntimeDownloadArgs)
120
154
displayName : Build x64
121
155
122
156
# Build the x86 shared framework
@@ -132,6 +166,7 @@ stages:
132
166
/p:OnlyPackPlatformSpecificPackages=true
133
167
/bl:artifacts/log/build.x86.binlog
134
168
$(_BuildArgs)
169
+ $(_InternalRuntimeDownloadArgs)
135
170
displayName : Build x86
136
171
137
172
# This is in a separate build step with -forceCoreMsbuild to workaround MAX_PATH limitations - https://github.com/Microsoft/msbuild/issues/53
@@ -140,6 +175,7 @@ stages:
140
175
-pack
141
176
-noBuildDeps
142
177
$(_BuildArgs)
178
+ $(_InternalRuntimeDownloadArgs)
143
179
condition : ne(variables['Build.Reason'], 'PullRequest')
144
180
displayName : Build SiteExtension
145
181
@@ -166,6 +202,7 @@ stages:
166
202
/p:AssetManifestFileName=aspnetcore-win-x64-x86.xml
167
203
$(_BuildArgs)
168
204
$(_PublishArgs)
205
+ $(_InternalRuntimeDownloadArgs)
169
206
/p:PublishInstallerBaseVersion=true
170
207
displayName : Build Installers
171
208
@@ -206,6 +243,7 @@ stages:
206
243
/p:AssetManifestFileName=aspnetcore-win-arm.xml
207
244
$(_BuildArgs)
208
245
$(_PublishArgs)
246
+ $(_InternalRuntimeDownloadArgs)
209
247
installNodeJs : false
210
248
installJdk : false
211
249
artifacts :
@@ -232,6 +270,7 @@ stages:
232
270
-p:AssetManifestFileName=aspnetcore-MacOS_x64.xml
233
271
$(_BuildArgs)
234
272
$(_PublishArgs)
273
+ $(_InternalRuntimeDownloadArgs)
235
274
installNodeJs : false
236
275
installJdk : false
237
276
artifacts :
@@ -252,6 +291,14 @@ stages:
252
291
jobDisplayName : " Build: Linux x64"
253
292
agentOs : Linux
254
293
steps :
294
+ - ${{ if ne(variables['System.TeamProject'], 'public') }} :
295
+ - task : Bash@3
296
+ displayName : Setup Private Feeds Credentials
297
+ inputs :
298
+ filePath : $(Build.SourcesDirectory)/eng/common/SetupNugetSources.sh
299
+ arguments : $(Build.SourcesDirectory)/NuGet.config $Token
300
+ env :
301
+ Token : $(dn-bot-dnceng-artifact-feeds-rw)
255
302
- script : ./build.sh
256
303
--ci
257
304
--arch x64
@@ -262,6 +309,7 @@ stages:
262
309
-p:OnlyPackPlatformSpecificPackages=true
263
310
-bl:artifacts/log/build.linux-x64.binlog
264
311
$(_BuildArgs)
312
+ $(_InternalRuntimeDownloadArgs)
265
313
displayName : Run build.sh
266
314
- script : |
267
315
git clean -xfd src/**/obj/
@@ -275,7 +323,8 @@ stages:
275
323
-p:BuildRuntimeArchive=false \
276
324
-p:LinuxInstallerType=deb \
277
325
-bl:artifacts/log/build.deb.binlog \
278
- $(_BuildArgs)
326
+ $(_BuildArgs) \
327
+ $(_InternalRuntimeDownloadArgs)
279
328
displayName: Build Debian installers
280
329
- script : |
281
330
git clean -xfd src/**/obj/
@@ -291,7 +340,8 @@ stages:
291
340
-bl:artifacts/log/build.rpm.binlog \
292
341
-p:AssetManifestFileName=aspnetcore-Linux_x64.xml \
293
342
$(_BuildArgs) \
294
- $(_PublishArgs)
343
+ $(_PublishArgs) \
344
+ $(_InternalRuntimeDownloadArgs)
295
345
displayName: Build RPM installers
296
346
installNodeJs : false
297
347
installJdk : false
@@ -323,6 +373,7 @@ stages:
323
373
-p:AssetManifestFileName=aspnetcore-Linux_arm.xml
324
374
$(_BuildArgs)
325
375
$(_PublishArgs)
376
+ $(_InternalRuntimeDownloadArgs)
326
377
installNodeJs : false
327
378
installJdk : false
328
379
artifacts :
@@ -353,6 +404,7 @@ stages:
353
404
-p:AssetManifestFileName=aspnetcore-Linux_arm64.xml
354
405
$(_BuildArgs)
355
406
$(_PublishArgs)
407
+ $(_InternalRuntimeDownloadArgs)
356
408
installNodeJs : false
357
409
installJdk : false
358
410
artifacts :
@@ -386,6 +438,7 @@ stages:
386
438
-p:AssetManifestFileName=aspnetcore-Linux_musl_x64.xml
387
439
$(_BuildArgs)
388
440
$(_PublishArgs)
441
+ $(_InternalRuntimeDownloadArgs)
389
442
installNodeJs : false
390
443
installJdk : false
391
444
artifacts :
@@ -419,6 +472,7 @@ stages:
419
472
-p:AssetManifestFileName=aspnetcore-Linux_musl_arm64.xml
420
473
$(_BuildArgs)
421
474
$(_PublishArgs)
475
+ $(_InternalRuntimeDownloadArgs)
422
476
installNodeJs : false
423
477
installJdk : false
424
478
artifacts :
@@ -440,7 +494,7 @@ stages:
440
494
jobDisplayName : " Test: Windows Server 2016 x64"
441
495
agentOs : Windows
442
496
isTestingJob : true
443
- buildArgs : -all -pack -test -BuildNative "/p:SkipHelixReadyTests=true /p:SkipIISNewHandlerTests=true /p:SkipIISTests=true /p:SkipIISExpressTests=true /p:SkipIISNewShimTests=true /p:RunTemplateTests=false"
497
+ buildArgs : -all -pack -test -BuildNative "/p:SkipHelixReadyTests=true /p:SkipIISNewHandlerTests=true /p:SkipIISTests=true /p:SkipIISExpressTests=true /p:SkipIISNewShimTests=true /p:RunTemplateTests=false" $(_InternalRuntimeDownloadArgs)
444
498
beforeBuild :
445
499
- powershell : " & ./src/Servers/IIS/tools/UpdateIISExpressCertificate.ps1; & ./src/Servers/IIS/tools/update_schema.ps1"
446
500
displayName : Setup IISExpress test certificates and schema
@@ -476,7 +530,15 @@ stages:
476
530
agentOs : Windows
477
531
isTestingJob : true
478
532
steps :
479
- - script : ./build.cmd -ci -all -pack
533
+ - ${{ if ne(variables['System.TeamProject'], 'public') }} :
534
+ - task : PowerShell@2
535
+ displayName : Setup Private Feeds Credentials
536
+ inputs :
537
+ filePath : $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1
538
+ arguments : -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
539
+ env :
540
+ Token : $(dn-bot-dnceng-artifact-feeds-rw)
541
+ - script : ./build.cmd -ci -all -pack $(_InternalRuntimeDownloadArgs)
480
542
displayName : Build Repo
481
543
- script : ./src/ProjectTemplates/build.cmd -ci -pack -NoRestore -NoBuilddeps "/p:RunTemplateTests=true /bl:artifacts/log/template.pack.binlog"
482
544
displayName : Pack Templates
@@ -503,7 +565,7 @@ stages:
503
565
jobDisplayName : " Test: macOS 10.13"
504
566
agentOs : macOS
505
567
isTestingJob : true
506
- buildArgs : --all --test "/p:RunTemplateTests=false /p:SkipHelixReadyTests=true"
568
+ buildArgs : --all --test "/p:RunTemplateTests=false /p:SkipHelixReadyTests=true" $(_InternalRuntimeDownloadArgs)
507
569
beforeBuild :
508
570
- bash : " ./eng/scripts/install-nginx-mac.sh"
509
571
displayName : Installing Nginx
@@ -538,7 +600,7 @@ stages:
538
600
jobDisplayName : " Test: Ubuntu 16.04 x64"
539
601
agentOs : Linux
540
602
isTestingJob : true
541
- buildArgs : --all --test "/p:RunTemplateTests=false /p:SkipHelixReadyTests=true"
603
+ buildArgs : --all --test "/p:RunTemplateTests=false /p:SkipHelixReadyTests=true" $(_InternalRuntimeDownloadArgs)
542
604
beforeBuild :
543
605
- bash : " ./eng/scripts/install-nginx-linux.sh"
544
606
displayName : Installing Nginx
@@ -582,6 +644,7 @@ stages:
582
644
- script : .\build.cmd -ci -NoRestore -test -projects eng\helix\helix.proj /p:IsRequiredCheck=true /p:IsHelixJob=true /p:BuildAllProjects=true /p:BuildNative=true /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log -bl
583
645
displayName : Run build.cmd helix target
584
646
env :
647
+ HelixApiAccessToken : $(HelixApiAccessToken) # Needed for internal queues
585
648
SYSTEM_ACCESSTOKEN : $(System.AccessToken) # We need to set this env var to publish helix results to Azure Dev Ops
586
649
artifacts :
587
650
- name : Helix_logs
@@ -591,6 +654,7 @@ stages:
591
654
592
655
- template : jobs/default-build.yml
593
656
parameters :
657
+ condition : ne(variables['Build.Reason'], 'PullRequest')
594
658
jobName : Helix_x64_daily
595
659
jobDisplayName : ' Tests: Helix x64 Daily'
596
660
agentOs : Windows
@@ -601,6 +665,7 @@ stages:
601
665
- script : .\build.cmd -ci -NoRestore -test -projects eng\helix\helix.proj /p:IsHelixJob=true /p:IsHelixDaily=true /p:BuildAllProjects=true /p:BuildNative=true /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log -bl
602
666
displayName : Run build.cmd helix target
603
667
env :
668
+ HelixApiAccessToken : $(HelixApiAccessToken) # Needed for internal queues
604
669
SYSTEM_ACCESSTOKEN : $(System.AccessToken) # We need to set this env var to publish helix results to Azure Dev Ops
605
670
artifacts :
606
671
- name : Helix_logs
@@ -622,6 +687,7 @@ stages:
622
687
- script : ./build.sh -ci --arch arm64 -test --no-build-nodejs -projects $(Build.SourcesDirectory)/eng/helix/helix.proj /p:IsHelixJob=true /p:IsHelixDaily=true /p:BuildAllProjects=true /p:BuildNative=true /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log -bl
623
688
displayName : Run build.sh helix arm64 target
624
689
env :
690
+ HelixApiAccessToken : $(HelixApiAccessToken) # Needed for internal queues
625
691
SYSTEM_ACCESSTOKEN : $(System.AccessToken) # We need to set this env var to publish helix results to Azure Dev Ops
626
692
installNodeJs : false
627
693
artifacts :
@@ -647,6 +713,14 @@ stages:
647
713
chmod +x $HOME/bin/jq
648
714
echo "##vso[task.prependpath]$HOME/bin"
649
715
displayName: Install jq
716
+ - ${{ if ne(variables['System.TeamProject'], 'public') }} :
717
+ - task : Bash@3
718
+ displayName : Setup Private Feeds Credentials
719
+ inputs :
720
+ filePath : $(Build.SourcesDirectory)/eng/common/SetupNugetSources.sh
721
+ arguments : $(Build.SourcesDirectory)/NuGet.config $Token
722
+ env :
723
+ Token : $(dn-bot-dnceng-artifact-feeds-rw)
650
724
- script : ./eng/scripts/ci-source-build.sh --ci --configuration Release /p:BuildManaged=true /p:BuildNodeJs=false
651
725
displayName : Run ci-source-build.sh
652
726
- task : PublishBuildArtifacts@1
0 commit comments