Skip to content

Commit 405dd8c

Browse files
MattGalT-Gro
andauthored
Arcade update + changes that should allow the "release/devXY.Z" branches (#14168)
Co-authored-by: Tomas Grosup <[email protected]>
1 parent b1c82d7 commit 405dd8c

File tree

5 files changed

+37
-27
lines changed

5 files changed

+37
-27
lines changed

azure-pipelines.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ variables:
6868
- ${{ if and(eq(variables['System.TeamProject'], 'public'), eq(variables['Build.Reason'], 'PullRequest')) }}:
6969
- name: RunningAsPullRequest
7070
value: true
71+
# Pick up pool provider name behavior from shared yaml template
72+
- template: /eng/common/templates/variables/pool-providers.yml
7173

7274
# Variables defined in yml cannot be overridden at queue time; instead overridable variables must be defined in the web UI.
7375
# Commenting out until something like this is supported: https://github.com/Microsoft/azure-pipelines-yaml/pull/129
@@ -104,7 +106,7 @@ stages:
104106
jobs:
105107
- job: Full_Signed
106108
pool:
107-
name: NetCore1ESPool-Internal
109+
name: $(DncEngInternalBuildPool)
108110
demands: ImageOverride -equals windows.vs2022.amd64
109111
timeoutInMinutes: 300
110112
variables:
@@ -212,7 +214,7 @@ stages:
212214
- name: _SignType
213215
value: Test
214216
pool:
215-
name: NetCore-Public
217+
name: $(DncEngPublicBuildPool)
216218
demands: ImageOverride -equals $(WindowsMachineQueueName)
217219
timeoutInMinutes: 90
218220
steps:
@@ -285,7 +287,7 @@ stages:
285287
# WindowsMachineQueueName=Windows.vs2022.amd64.open
286288
# and there is an alternate build definition that sets this to a queue that is always scouting the
287289
# next preview of Visual Studio.
288-
name: NetCore-Public
290+
name: $(DncEngPublicBuildPool)
289291
demands: ImageOverride -equals $(WindowsMachineQueueName)
290292
timeoutInMinutes: 120
291293
strategy:
@@ -343,7 +345,7 @@ stages:
343345
# WindowsMachineQueueName=Windows.vs2022.amd64.open
344346
# and there is an alternate build definition that sets this to a queue that is always scouting the
345347
# next preview of Visual Studio.
346-
name: NetCore-Public
348+
name: $(DncEngPublicBuildPool)
347349
demands: ImageOverride -equals $(WindowsMachineQueueName)
348350
timeoutInMinutes: 120
349351
strategy:
@@ -397,7 +399,7 @@ stages:
397399
# Mock official build
398400
- job: MockOfficial
399401
pool:
400-
name: NetCore-Public
402+
name: $(DncEngPublicBuildPool)
401403
demands: ImageOverride -equals $(WindowsMachineQueueName)
402404
steps:
403405
- checkout: self
@@ -488,7 +490,7 @@ stages:
488490
# End to end build
489491
- job: EndToEndBuildTests
490492
pool:
491-
name: NetCore-Public
493+
name: $(DncEngPublicBuildPool)
492494
demands: ImageOverride -equals $(WindowsMachineQueueName)
493495
steps:
494496
- checkout: self
@@ -517,7 +519,7 @@ stages:
517519
- name: _SignType
518520
value: Test
519521
pool:
520-
name: NetCore-Public
522+
name: $(DncEngPublicBuildPool)
521523
demands: ImageOverride -equals $(WindowsMachineQueueName)
522524
timeoutInMinutes: 90
523525
steps:
@@ -543,7 +545,7 @@ stages:
543545
# Plain build Windows
544546
- job: Plain_Build_Windows
545547
pool:
546-
name: NetCore-Public
548+
name: $(DncEngPublicBuildPool)
547549
demands: ImageOverride -equals $(WindowsMachineQueueName)
548550
variables:
549551
- name: _BuildConfig
@@ -640,7 +642,7 @@ stages:
640642
# Test trimming on Windows
641643
- job: Build_And_Test_Trimming_Windows
642644
pool:
643-
name: NetCore-Public
645+
name: $(DncEngPublicBuildPool)
644646
demands: ImageOverride -equals $(WindowsMachineQueueName)
645647
strategy:
646648
maxParallel: 2

eng/Version.Details.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
</Dependency>
99
</ProductDependencies>
1010
<ToolsetDependencies>
11-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="8.0.0-beta.22520.1">
11+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="8.0.0-beta.22524.5">
1212
<Uri>https://github.com/dotnet/arcade</Uri>
13-
<Sha>7e27c0ab0fc92ec636c26442fd1663dc5714aa4b</Sha>
13+
<Sha>c5dd6a1da2e6d9b3423ab809fcda8af2927a408b</Sha>
1414
<SourceBuild RepoName="arcade" ManagedOnly="true" />
1515
</Dependency>
16-
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="8.0.0-beta.22520.1">
16+
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="8.0.0-beta.22524.5">
1717
<Uri>https://github.com/dotnet/arcade</Uri>
18-
<Sha>7e27c0ab0fc92ec636c26442fd1663dc5714aa4b</Sha>
18+
<Sha>c5dd6a1da2e6d9b3423ab809fcda8af2927a408b</Sha>
1919
</Dependency>
2020
</ToolsetDependencies>
2121
</Dependencies>

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

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ parameters:
3434
jobs:
3535
- job: ${{ parameters.jobNamePrefix }}_${{ parameters.platform.name }}
3636
displayName: Source-Build (${{ parameters.platform.name }})
37-
variables:
38-
- template: /eng/common/templates/variables/pool-providers.yml
3937

4038
${{ each property in parameters.platform.jobProperties }}:
4139
${{ property.key }}: ${{ property.value }}
@@ -46,13 +44,24 @@ jobs:
4644
${{ if eq(parameters.platform.pool, '') }}:
4745
# The default VM host AzDO pool. This should be capable of running Docker containers: almost all
4846
# source-build builds run in Docker, including the default managed platform.
47+
# /eng/common/templates/variables/pool-providers.yml can't be used here (some customers declare variables already), so duplicate its logic
4948
pool:
50-
${{ if eq(variables['System.TeamProject'], 'public') }}:
51-
name: $(DncEngPublicBuildPool)
49+
# Main environments
50+
${{ if and(eq(variables['System.TeamProject'], 'public'), ne(contains(coalesce(variables['System.PullRequest.TargetBranch'], variables['Build.SourceBranch'], 'refs/heads/main'), 'release'), true)) }}:
51+
name: NetCore-Public
5252
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64.Open
53-
${{ if eq(variables['System.TeamProject'], 'internal') }}:
54-
name: $(DncEngInternalBuildPool)
53+
${{ if and(eq(variables['System.TeamProject'], 'internal'), ne(contains(coalesce(variables['System.PullRequest.TargetBranch'], variables['Build.SourceBranch'], 'refs/heads/main'), 'release'), true)) }}:
54+
name: NetCore1ESPool-Internal
5555
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64
56+
57+
# Servicing build environments
58+
${{ if and(eq(variables['System.TeamProject'], 'public'), contains(coalesce(variables['System.PullRequest.TargetBranch'], variables['Build.SourceBranch'], 'refs/heads/main'), 'release')) }}:
59+
name: NetCore-Svc-Public
60+
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64.Open
61+
${{ if and(eq(variables['System.TeamProject'], 'internal'), contains(coalesce(variables['System.PullRequest.TargetBranch'], variables['Build.SourceBranch'], 'refs/heads/main'), 'release')) }}:
62+
name: NetCore1ESPool-Svc-Internal
63+
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64
64+
5665
${{ if ne(parameters.platform.pool, '') }}:
5766
pool: ${{ parameters.platform.pool }}
5867

eng/common/tools.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -417,12 +417,11 @@ function MSBuild {
417417
Write-PipelineSetVariable -name "NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS" -value "20"
418418
Write-PipelineSetVariable -name "NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS" -value "20"
419419

420-
export NUGET_ENABLE_EXPERIMENTAL_HTTP_RETRY=true
421-
export NUGET_EXPERIMENTAL_MAX_NETWORK_TRY_COUNT=6
422-
export NUGET_EXPERIMENTAL_NETWORK_RETRY_DELAY_MILLISECONDS=1000
423-
Write-PipelineSetVariable -name "NUGET_ENABLE_EXPERIMENTAL_HTTP_RETRY" -value "true"
424-
Write-PipelineSetVariable -name "NUGET_EXPERIMENTAL_MAX_NETWORK_TRY_COUNT" -value "6"
425-
Write-PipelineSetVariable -name "NUGET_EXPERIMENTAL_NETWORK_RETRY_DELAY_MILLISECONDS" -value "1000"
420+
# https://github.com/dotnet/arcade/issues/11369 - disable new MSBuild server feature on linux
421+
# This feature is new and can result in build failures from connection timeout errors.
422+
export DOTNET_CLI_DO_NOT_USE_MSBUILD_SERVER=1
423+
Write-PipelineSetVariable -name "DOTNET_CLI_DO_NOT_USE_MSBUILD_SERVER" -value "1"
424+
426425
fi
427426

428427
local toolset_dir="${_InitializeToolset%/*}"

global.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"perl": "5.32.1.1"
1919
},
2020
"msbuild-sdks": {
21-
"Microsoft.DotNet.Arcade.Sdk": "8.0.0-beta.22520.1",
22-
"Microsoft.DotNet.Helix.Sdk": "8.0.0-beta.22520.1"
21+
"Microsoft.DotNet.Arcade.Sdk": "8.0.0-beta.22524.5",
22+
"Microsoft.DotNet.Helix.Sdk": "8.0.0-beta.22524.5"
2323
}
2424
}

0 commit comments

Comments
 (0)