-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Merge branch release/3.1 --> master #19122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 141 commits
7fd42c4
57e68b0
2c6456d
5e4320c
80ff7fd
8757775
0f54cd7
b45e247
0b713e5
22dedcb
2b2153a
aff6ee3
7891c83
4ba64f5
0d37794
147f950
43ca89b
64d3a35
898bf48
69bf1d9
0757955
3999eaf
a0183b1
05d579c
8ad86ee
15c2082
e085de4
f495589
21831b5
a3aaf16
049cdec
163c80c
386ffeb
f992759
89aae45
90aa91a
30be2bd
f6f3f6f
598e43a
79c2268
0fbb780
1a577b9
cafb50c
24806e5
6cdd41a
3cfac25
9a4ab80
d0cca8c
cf6b502
7ba7572
409ead0
7256b35
3a67489
a11d4b3
f2f2358
7052bc4
a3358d7
138e801
fcb2272
e142091
6ce4719
f89c8d1
95be2bd
81bccd1
0780fb8
e6af4bf
f53765f
1324674
35b9d76
e276c81
32de399
183a09f
6712203
0269733
a474170
eb1150b
36e7902
ee57a0c
67424e7
6ec28e8
164ddfd
8211a1c
ad8ecf9
34294a3
cba11d7
b4d2f9a
9522e1d
89d2640
109663e
cf3bf40
4dd0a6c
ca56fee
93a51f5
d9ccf23
5dc2d6e
7f53f7e
4682c2a
8e5767b
6a8ce3a
405e841
bc7135c
452a822
c919c58
28240ce
cd518e9
d839d4c
2dc908d
6f88144
4fb0a13
328b52d
14d9ebd
c3acdca
49920aa
09aadd6
131f427
a6c43b1
d10a352
1027e53
d7f98bd
e8d3169
a633c66
7fa6d19
d05c9f4
ba74c35
89ab863
f3e2b4d
439f4af
a085554
e29c495
7fc314f
88073f8
b92f423
f2dd6d4
607a6b4
2d066dc
1e03d57
e721923
c2ee4ae
f1fbb2d
e27f912
782b7c5
c8bcb96
3c40c64
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,15 +31,28 @@ variables: | |
value: .NETCORE | ||
- name: _DotNetValidationArtifactsCategory | ||
value: .NETCORE | ||
- name: _UseHelixOpenQueues | ||
value: 'true' | ||
- ${{ if ne(variables['System.TeamProject'], 'internal') }}: | ||
- name: _BuildArgs | ||
value: '' | ||
- name: _PublishArgs | ||
value: '' | ||
- name: _SignType | ||
value: '' | ||
- name: _UseHelixOpenQueues | ||
value: 'true' | ||
- name: _InternalRuntimeDownloadArgs | ||
value: '' | ||
- name: _InternalRuntimeDownloadCodeSignArgs | ||
value: '' | ||
- ${{ if eq(variables['System.TeamProject'], 'internal') }}: | ||
- group: DotNet-MSRC-Storage | ||
- name: _InternalRuntimeDownloadArgs | ||
value: -DotNetRuntimeSourceFeed https://dotnetclimsrc.blob.core.windows.net/dotnet -DotNetRuntimeSourceFeedKey $(dotnetclimsrc-read-sas-token-base64) /p:DotNetAssetRootAccessTokenSuffix='$(dotnetclimsrc-read-sas-token-base64)' | ||
# The code signing doesn't use the aspnet build scripts, so the msbuild parameers have | ||
# to be passed directly. This is awkward, since we pass the same info above, but we have | ||
# to have it in two different forms | ||
- name: _InternalRuntimeDownloadCodeSignArgs | ||
value: /p:DotNetRuntimeSourceFeed=https://dotnetclimsrc.blob.core.windows.net/dotnet /p:DotNetRuntimeSourceFeedKey=$(dotnetclimsrc-read-sas-token-base64) | ||
- ${{ if eq(variables['System.TeamProject'], 'internal') }}: | ||
- group: DotNet-HelixApi-Access | ||
- name: _UseHelixOpenQueues | ||
|
@@ -68,7 +81,7 @@ variables: | |
- name: _BuildArgs | ||
value: '' | ||
- name: _SignType | ||
valule: test | ||
value: test | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For posterity: This is the change @BrennanConroy really really wants in 'master' branch 😈 |
||
- name: _PublishArgs | ||
value: '' | ||
# used for post-build phases, internal builds only | ||
|
@@ -86,7 +99,15 @@ stages: | |
jobDisplayName: Code check | ||
agentOs: Windows | ||
steps: | ||
- powershell: ./eng/scripts/CodeCheck.ps1 -ci | ||
- ${{ if ne(variables['System.TeamProject'], 'public') }}: | ||
- task: PowerShell@2 | ||
displayName: Setup Private Feeds Credentials | ||
inputs: | ||
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1 | ||
arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token | ||
env: | ||
Token: $(dn-bot-dnceng-artifact-feeds-rw) | ||
- powershell: ./eng/scripts/CodeCheck.ps1 -ci $(_InternalRuntimeDownloadArgs) | ||
displayName: Run eng/scripts/CodeCheck.ps1 | ||
artifacts: | ||
- name: Code_Check_Logs | ||
|
@@ -113,6 +134,14 @@ stages: | |
# This is intentional to workaround https://github.com/dotnet/arcade/issues/1957 which always re-submits for code-signing, even | ||
# if they have already been signed. This results in slower builds due to re-submitting the same .nupkg many times for signing. | ||
# The sign settings have been configured to | ||
- ${{ if ne(variables['System.TeamProject'], 'public') }}: | ||
- task: PowerShell@2 | ||
displayName: Setup Private Feeds Credentials | ||
inputs: | ||
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1 | ||
arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token | ||
env: | ||
Token: $(dn-bot-dnceng-artifact-feeds-rw) | ||
|
||
- script: ./build.cmd | ||
-ci | ||
|
@@ -122,6 +151,7 @@ stages: | |
-buildNative | ||
/bl:artifacts/log/build.x64.binlog | ||
$(_BuildArgs) | ||
$(_InternalRuntimeDownloadArgs) | ||
displayName: Build x64 | ||
|
||
# Build the x86 shared framework | ||
|
@@ -137,6 +167,7 @@ stages: | |
/p:OnlyPackPlatformSpecificPackages=true | ||
/bl:artifacts/log/build.x86.binlog | ||
$(_BuildArgs) | ||
$(_InternalRuntimeDownloadArgs) | ||
displayName: Build x86 | ||
|
||
# This is in a separate build step with -forceCoreMsbuild to workaround MAX_PATH limitations - https://github.com/Microsoft/msbuild/issues/53 | ||
|
@@ -145,6 +176,7 @@ stages: | |
-pack | ||
-noBuildDeps | ||
$(_BuildArgs) | ||
$(_InternalRuntimeDownloadArgs) | ||
condition: ne(variables['Build.Reason'], 'PullRequest') | ||
displayName: Build SiteExtension | ||
|
||
|
@@ -171,6 +203,7 @@ stages: | |
/p:AssetManifestFileName=aspnetcore-win-x64-x86.xml | ||
$(_BuildArgs) | ||
$(_PublishArgs) | ||
$(_InternalRuntimeDownloadArgs) | ||
/p:PublishInstallerBaseVersion=true | ||
displayName: Build Installers | ||
|
||
|
@@ -211,6 +244,7 @@ stages: | |
/p:AssetManifestFileName=aspnetcore-win-arm.xml | ||
$(_BuildArgs) | ||
$(_PublishArgs) | ||
$(_InternalRuntimeDownloadArgs) | ||
installNodeJs: false | ||
installJdk: false | ||
artifacts: | ||
|
@@ -237,6 +271,7 @@ stages: | |
-p:AssetManifestFileName=aspnetcore-MacOS_x64.xml | ||
$(_BuildArgs) | ||
$(_PublishArgs) | ||
$(_InternalRuntimeDownloadArgs) | ||
installNodeJs: false | ||
installJdk: false | ||
artifacts: | ||
|
@@ -257,6 +292,14 @@ stages: | |
jobDisplayName: "Build: Linux x64" | ||
agentOs: Linux | ||
steps: | ||
- ${{ if ne(variables['System.TeamProject'], 'public') }}: | ||
- task: Bash@3 | ||
displayName: Setup Private Feeds Credentials | ||
inputs: | ||
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.sh | ||
arguments: $(Build.SourcesDirectory)/NuGet.config $Token | ||
env: | ||
Token: $(dn-bot-dnceng-artifact-feeds-rw) | ||
- script: ./build.sh | ||
--ci | ||
--arch x64 | ||
|
@@ -267,6 +310,7 @@ stages: | |
-p:OnlyPackPlatformSpecificPackages=true | ||
-bl:artifacts/log/build.linux-x64.binlog | ||
$(_BuildArgs) | ||
$(_InternalRuntimeDownloadArgs) | ||
displayName: Run build.sh | ||
- script: | | ||
git clean -xfd src/**/obj/ | ||
|
@@ -280,7 +324,8 @@ stages: | |
-p:BuildRuntimeArchive=false \ | ||
-p:LinuxInstallerType=deb \ | ||
-bl:artifacts/log/build.deb.binlog \ | ||
$(_BuildArgs) | ||
$(_BuildArgs) \ | ||
$(_InternalRuntimeDownloadArgs) | ||
displayName: Build Debian installers | ||
- script: | | ||
git clean -xfd src/**/obj/ | ||
|
@@ -296,7 +341,8 @@ stages: | |
-bl:artifacts/log/build.rpm.binlog \ | ||
-p:AssetManifestFileName=aspnetcore-Linux_x64.xml \ | ||
$(_BuildArgs) \ | ||
$(_PublishArgs) | ||
$(_PublishArgs) \ | ||
$(_InternalRuntimeDownloadArgs) | ||
displayName: Build RPM installers | ||
installNodeJs: false | ||
installJdk: false | ||
|
@@ -328,6 +374,7 @@ stages: | |
-p:AssetManifestFileName=aspnetcore-Linux_arm.xml | ||
$(_BuildArgs) | ||
$(_PublishArgs) | ||
$(_InternalRuntimeDownloadArgs) | ||
installNodeJs: false | ||
installJdk: false | ||
artifacts: | ||
|
@@ -358,6 +405,7 @@ stages: | |
-p:AssetManifestFileName=aspnetcore-Linux_arm64.xml | ||
$(_BuildArgs) | ||
$(_PublishArgs) | ||
$(_InternalRuntimeDownloadArgs) | ||
installNodeJs: false | ||
installJdk: false | ||
artifacts: | ||
|
@@ -391,6 +439,7 @@ stages: | |
-p:AssetManifestFileName=aspnetcore-Linux_musl_x64.xml | ||
$(_BuildArgs) | ||
$(_PublishArgs) | ||
$(_InternalRuntimeDownloadArgs) | ||
installNodeJs: false | ||
installJdk: false | ||
artifacts: | ||
|
@@ -424,6 +473,7 @@ stages: | |
-p:AssetManifestFileName=aspnetcore-Linux_musl_arm64.xml | ||
$(_BuildArgs) | ||
$(_PublishArgs) | ||
$(_InternalRuntimeDownloadArgs) | ||
installNodeJs: false | ||
installJdk: false | ||
artifacts: | ||
|
@@ -445,7 +495,7 @@ stages: | |
jobDisplayName: "Test: Windows Server 2016 x64" | ||
agentOs: Windows | ||
isTestingJob: true | ||
buildArgs: -all -pack -test -BuildNative "/p:SkipHelixReadyTests=true /p:SkipIISNewHandlerTests=true /p:SkipIISTests=true /p:SkipIISExpressTests=true /p:SkipIISNewShimTests=true /p:RunTemplateTests=false" | ||
buildArgs: -all -pack -test -BuildNative "/p:SkipHelixReadyTests=true /p:SkipIISNewHandlerTests=true /p:SkipIISTests=true /p:SkipIISExpressTests=true /p:SkipIISNewShimTests=true /p:RunTemplateTests=false" $(_InternalRuntimeDownloadArgs) | ||
beforeBuild: | ||
- powershell: "& ./src/Servers/IIS/tools/UpdateIISExpressCertificate.ps1; & ./src/Servers/IIS/tools/update_schema.ps1" | ||
displayName: Setup IISExpress test certificates and schema | ||
|
@@ -481,7 +531,15 @@ stages: | |
agentOs: Windows | ||
isTestingJob: true | ||
steps: | ||
- script: ./build.cmd -ci -all -pack | ||
- ${{ if ne(variables['System.TeamProject'], 'public') }}: | ||
- task: PowerShell@2 | ||
displayName: Setup Private Feeds Credentials | ||
inputs: | ||
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1 | ||
arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token | ||
env: | ||
Token: $(dn-bot-dnceng-artifact-feeds-rw) | ||
- script: ./build.cmd -ci -all -pack $(_InternalRuntimeDownloadArgs) | ||
displayName: Build Repo | ||
- script: ./src/ProjectTemplates/build.cmd -ci -pack -NoRestore -NoBuilddeps "/p:RunTemplateTests=true /bl:artifacts/log/template.pack.binlog" | ||
displayName: Pack Templates | ||
|
@@ -508,7 +566,7 @@ stages: | |
jobDisplayName: "Test: macOS 10.13" | ||
agentOs: macOS | ||
isTestingJob: true | ||
buildArgs: --all --test "/p:RunTemplateTests=false /p:SkipHelixReadyTests=true" | ||
buildArgs: --all --test "/p:RunTemplateTests=false /p:SkipHelixReadyTests=true" $(_InternalRuntimeDownloadArgs) | ||
beforeBuild: | ||
- bash: "./eng/scripts/install-nginx-mac.sh" | ||
displayName: Installing Nginx | ||
|
@@ -543,7 +601,7 @@ stages: | |
jobDisplayName: "Test: Ubuntu 16.04 x64" | ||
agentOs: Linux | ||
isTestingJob: true | ||
buildArgs: --all --test "/p:RunTemplateTests=false /p:SkipHelixReadyTests=true" | ||
buildArgs: --all --test "/p:RunTemplateTests=false /p:SkipHelixReadyTests=true" $(_InternalRuntimeDownloadArgs) | ||
beforeBuild: | ||
- bash: "./eng/scripts/install-nginx-linux.sh" | ||
displayName: Installing Nginx | ||
|
@@ -656,6 +714,14 @@ stages: | |
chmod +x $HOME/bin/jq | ||
echo "##vso[task.prependpath]$HOME/bin" | ||
displayName: Install jq | ||
- ${{ if ne(variables['System.TeamProject'], 'public') }}: | ||
- task: Bash@3 | ||
displayName: Setup Private Feeds Credentials | ||
inputs: | ||
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.sh | ||
arguments: $(Build.SourcesDirectory)/NuGet.config $Token | ||
env: | ||
Token: $(dn-bot-dnceng-artifact-feeds-rw) | ||
- script: ./eng/scripts/ci-source-build.sh --ci --configuration Release /p:BuildManaged=true /p:BuildNodeJs=false | ||
displayName: Run ci-source-build.sh | ||
- task: PublishBuildArtifacts@1 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -161,6 +161,24 @@ jobs: | |
- ${{ if ne(parameters.steps, '')}}: | ||
- ${{ parameters.steps }} | ||
- ${{ if eq(parameters.steps, '')}}: | ||
- ${{ if ne(variables['System.TeamProject'], 'public') }}: | ||
- ${{ if eq(parameters.agentOs, 'Windows') }}: | ||
- ${{ if ne(variables['System.TeamProject'], 'public') }}: | ||
- task: PowerShell@2 | ||
displayName: Setup Private Feeds Credentials | ||
inputs: | ||
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1 | ||
arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token | ||
env: | ||
Token: $(dn-bot-dnceng-artifact-feeds-rw) | ||
- ${{ if ne(parameters.agentOs, 'Windows') }}: | ||
- task: Bash@3 | ||
displayName: Setup Private Feeds Credentials | ||
inputs: | ||
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.sh | ||
arguments: $(Build.SourcesDirectory)/NuGet.config $Token | ||
env: | ||
Token: $(dn-bot-dnceng-artifact-feeds-rw) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why does this block need to be duplicated in ci.yml for anything but the source build job? (That one doesn't use this template.) |
||
- ${{ if eq(parameters.buildScript, '') }}: | ||
- ${{ if eq(parameters.agentOs, 'Windows') }}: | ||
- script: .\$(BuildDirectory)\build.cmd -ci /p:DotNetSignType=$(_SignType) -Configuration $(BuildConfiguration) $(BuildScriptArgs) | ||
|
Uh oh!
There was an error while loading. Please reload this page.