@@ -27,12 +27,6 @@ parameters:
2727 default : false
2828 displayName : Skip tests?
2929 type : boolean
30- # Choose whether to enable binlogs when running pipeline manually.
31- # Binary logs are enabled by default in public builds and aren't designed to be disabled there.
32- - name : produceBinlogs
33- default : false
34- displayName : Produce binlogs?
35- type : boolean
3630
3731variables :
3832- name : DOTNET_SKIP_FIRST_TIME_EXPERIENCE
@@ -44,9 +38,13 @@ variables:
4438- ${{ if or(startswith(variables['Build.SourceBranch'], 'refs/heads/release/'), startswith(variables['Build.SourceBranch'], 'refs/heads/internal/release/'), eq(variables['Build.Reason'], 'Manual')) }} :
4539 - name : PostBuildSign
4640 value : false
41+ - name : _ArcadePublishNonWindowsArg
42+ value : ' '
4743- ${{ else }} :
4844 - name : PostBuildSign
4945 value : true
46+ - name : _ArcadePublishNonWindowsArg
47+ value : --publish
5048- name : _UseHelixOpenQueues
5149 value : ${{ ne(variables['System.TeamProject'], 'internal') }}
5250- ${{ if and(notin(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.SourceBranch'], 'refs/heads/main')) }} :
@@ -63,39 +61,23 @@ variables:
6361 # The following extra properties are not set when testing. Use with final build.[cmd,sh] of asset-producing jobs.
6462 - name : _PublishArgs
6563 value : /p:DotNetPublishUsingPipelines=$(_PublishUsingPipelines)
66- - ${{ if ne(parameters.produceBinlogs, 'true') }} :
67- # Do not log most Windows steps in official builds; this is the slowest job. Site extensions step always logs.
68- - name : WindowsArm64LogArgs
69- value : -ExcludeCIBinaryLog
70- - name : Windows64LogArgs
71- value : -ExcludeCIBinaryLog
72- - name : Windows86LogArgs
73- value : -ExcludeCIBinaryLog
74- - name : WindowsSignLogArgs
75- value : -ExcludeCIBinaryLog
76- - name : WindowsInstallersLogArgs
77- value : -ExcludeCIBinaryLog
78- - name : WindowsArm64InstallersLogArgs
79- value : -ExcludeCIBinaryLog
8064- ${{ if in(variables['Build.Reason'], 'PullRequest') }} :
8165 - name : _BuildArgs
8266 value : ' /p:SkipTestBuild=true /p:PostBuildSign=$(PostBuildSign)'
8367 - name : _PublishArgs
8468 value : ' '
85- - ${{ if or(in(variables['Build.Reason'], 'PullRequest'), eq(parameters.produceBinlogs, 'true')) }} :
86- # Write binary logs for all main Windows build steps except the x86 one in public and PR builds.
87- - name : WindowsArm64LogArgs
88- value : /bl:artifacts/log/Release/Build.arm64.binlog
89- - name : Windows64LogArgs
90- value : /bl:artifacts/log/Release/Build.x64.binlog
91- - name : Windows86LogArgs
92- value : -ExcludeCIBinaryLog
93- - name : WindowsSignLogArgs
94- value : /bl:artifacts/log/Release/Build.CodeSign.binlog
95- - name : WindowsInstallersLogArgs
96- value : /bl:artifacts/log/Release/Build.Installers.binlog
97- - name : WindowsArm64InstallersLogArgs
98- value : /bl:artifacts/log/Release/Build.Installers.Arm64.binlog
69+ - name : WindowsArm64LogArgs
70+ value : /bl:artifacts/log/Release/Build.arm64.binlog
71+ - name : Windows64LogArgs
72+ value : /bl:artifacts/log/Release/Build.x64.binlog
73+ - name : Windows86LogArgs
74+ value : -ExcludeCIBinaryLog
75+ - name : WindowsSignLogArgs
76+ value : /bl:artifacts/log/Release/Build.CodeSign.binlog
77+ - name : WindowsInstallersLogArgs
78+ value : /bl:artifacts/log/Release/Build.Installers.binlog
79+ - name : WindowsArm64InstallersLogArgs
80+ value : /bl:artifacts/log/Release/Build.Installers.Arm64.binlog
9981- name : _InternalRuntimeDownloadArgs
10082 value : -RuntimeSourceFeed https://dotnetbuilds.blob.core.windows.net/internal
10183 -RuntimeSourceFeedKey $(dotnetbuilds-internal-container-read-token-base64)
@@ -121,12 +103,6 @@ variables:
121103 - template : /eng/common/templates-official/variables/pool-providers.yml@self
122104
123105resources :
124- containers :
125- - container : debpkg
126- image : mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-debpkg
127-
128- - container : rpmpkg
129- image : mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-fpm
130106 repositories :
131107 # Repo: 1ESPipelineTemplates/1ESPipelineTemplates
132108 - repository : 1esPipelines
@@ -321,7 +297,7 @@ extends:
321297 --pack
322298 --all
323299 --no-build-java
324- --publish
300+ $(_ArcadePublishNonWindowsArg)
325301 -p:OnlyPackPlatformSpecificPackages=true
326302 -p:AssetManifestFileName=aspnetcore-MacOS_arm64.xml
327303 $(_BuildArgs)
@@ -351,7 +327,7 @@ extends:
351327 --pack
352328 --all
353329 --no-build-java
354- --publish
330+ $(_ArcadePublishNonWindowsArg)
355331 -p:OnlyPackPlatformSpecificPackages=true
356332 -p:AssetManifestFileName=aspnetcore-MacOS_x64.xml
357333 $(_BuildArgs)
@@ -377,48 +353,18 @@ extends:
377353 jobDisplayName : " Build: Linux x64"
378354 agentOs : Linux
379355 useHostedUbuntu : false
380- steps :
381- - script : ./eng/build.sh
382- --ci
383- --arch x64
384- --pack
385- --all
386- --no-build-java
387- -p:OnlyPackPlatformSpecificPackages=true
388- $(_BuildArgs)
389- $(_InternalRuntimeDownloadArgs)
390- displayName : Run build.sh
391- - script : ./eng/build.sh
392- --ci
393- --nobl
394- --arch x64
395- --build-installers
396- --no-build-deps
397- --no-build-nodejs
398- -p:OnlyPackPlatformSpecificPackages=true
399- -p:BuildRuntimeArchive=false
400- -p:LinuxInstallerType=deb
401- $(_BuildArgs)
402- $(_InternalRuntimeDownloadArgs)
403- displayName : Build Debian installers
404- target : debpkg
405- - script : ./eng/build.sh
406- --ci
407- --nobl
408- --arch x64
409- --build-installers
410- --no-build-deps
411- --no-build-nodejs
412- --publish
413- -p:OnlyPackPlatformSpecificPackages=true
414- -p:BuildRuntimeArchive=false
415- -p:LinuxInstallerType=rpm
416- -p:AssetManifestFileName=aspnetcore-Linux_x64.xml
417- $(_BuildArgs)
418- $(_PublishArgs)
419- $(_InternalRuntimeDownloadArgs)
420- displayName : Build RPM installers
421- target : rpmpkg
356+ buildArgs :
357+ --arch x64
358+ --pack
359+ --all
360+ --build-installers
361+ --no-build-java
362+ $(_ArcadePublishNonWindowsArg)
363+ -p:OnlyPackPlatformSpecificPackages=true
364+ -p:AssetManifestFileName=aspnetcore-Linux_x64.xml
365+ $(_BuildArgs)
366+ $(_PublishArgs)
367+ $(_InternalRuntimeDownloadArgs)
422368 artifacts :
423369 - name : Linux_x64_Logs_Attempt_$(System.JobAttempt)
424370 path : artifacts/log/
@@ -443,7 +389,7 @@ extends:
443389 --pack
444390 --all
445391 --no-build-java
446- --publish
392+ $(_ArcadePublishNonWindowsArg)
447393 -p:OnlyPackPlatformSpecificPackages=true
448394 -p:AssetManifestFileName=aspnetcore-Linux_arm.xml
449395 $(_BuildArgs)
@@ -468,34 +414,18 @@ extends:
468414 jobName : Linux_arm64_build
469415 jobDisplayName : " Build: Linux ARM64"
470416 agentOs : Linux
471- steps :
472- - script : ./eng/build.sh
473- --ci
474- --arch arm64
475- --pack
476- --all
477- --no-build-java
478- -p:OnlyPackPlatformSpecificPackages=true
479- $(_BuildArgs)
480- $(_InternalRuntimeDownloadArgs)
481- displayName : Run build.sh
482- - script : ./eng/build.sh
483- --ci
484- --nobl
485- --arch arm64
486- --build-installers
487- --no-build-deps
488- --no-build-nodejs
489- --publish
490- -p:OnlyPackPlatformSpecificPackages=true
491- -p:BuildRuntimeArchive=false
492- -p:LinuxInstallerType=rpm
493- -p:AssetManifestFileName=aspnetcore-Linux_arm64.xml
494- $(_BuildArgs)
495- $(_PublishArgs)
496- $(_InternalRuntimeDownloadArgs)
497- displayName : Build RPM installers
498- target : rpmpkg
417+ buildArgs :
418+ --arch arm64
419+ --pack
420+ --all
421+ --build-installers
422+ --no-build-java
423+ $(_ArcadePublishNonWindowsArg)
424+ -p:OnlyPackPlatformSpecificPackages=true
425+ -p:AssetManifestFileName=aspnetcore-Linux_arm64.xml
426+ $(_BuildArgs)
427+ $(_PublishArgs)
428+ $(_InternalRuntimeDownloadArgs)
499429 artifacts :
500430 - name : Linux_arm64_Logs_Attempt_$(System.JobAttempt)
501431 path : artifacts/log/
@@ -522,7 +452,7 @@ extends:
522452 --pack
523453 --all
524454 --no-build-java
525- --publish
455+ $(_ArcadePublishNonWindowsArg)
526456 -p:OnlyPackPlatformSpecificPackages=true
527457 -p:AssetManifestFileName=aspnetcore-Linux_musl_x64.xml
528458 $(_BuildArgs)
@@ -556,7 +486,7 @@ extends:
556486 --pack
557487 --all
558488 --no-build-java
559- --publish
489+ $(_ArcadePublishNonWindowsArg)
560490 -p:OnlyPackPlatformSpecificPackages=true
561491 -p:AssetManifestFileName=aspnetcore-Linux_musl_arm.xml
562492 $(_BuildArgs)
@@ -589,7 +519,7 @@ extends:
589519 --pack
590520 --all
591521 --no-build-java
592- --publish
522+ $(_ArcadePublishNonWindowsArg)
593523 -p:OnlyPackPlatformSpecificPackages=true
594524 -p:AssetManifestFileName=aspnetcore-Linux_musl_arm64.xml
595525 $(_BuildArgs)
0 commit comments