Skip to content

Commit c83ddc9

Browse files
[release/8.0] Update dependencies from dotnet/arcade (#33334)
Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Helix.Sdk From Version 8.0.0-beta.24113.2 -> To Version 8.0.0-beta.24165.4 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
1 parent ab4b201 commit c83ddc9

28 files changed

+422
-213
lines changed

NuGet.config

-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<clear />
55
<!--Begin: Package sources managed by Dependency Flow automation. Do not edit the sources below.-->
66
<!-- Begin: Package sources from dotnet-runtime -->
7-
<add key="darc-int-dotnet-runtime-9f4b1f5" value="https://pkgs.dev.azure.com/dnceng/internal/_packaging/darc-int-dotnet-runtime-9f4b1f5d/nuget/v3/index.json" />
87
<!-- End: Package sources from dotnet-runtime -->
98
<!--End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
109
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" />
@@ -19,7 +18,6 @@
1918
<clear />
2019
<!--Begin: Package sources managed by Dependency Flow automation. Do not edit the sources below.-->
2120
<!-- Begin: Package sources from dotnet-runtime -->
22-
<add key="darc-int-dotnet-runtime-9f4b1f5" value="true" />
2321
<!-- End: Package sources from dotnet-runtime -->
2422
<!--End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
2523
</disabledPackageSources>

eng/Version.Details.xml

+6-6
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,17 @@
5656
</Dependency>
5757
</ProductDependencies>
5858
<ToolsetDependencies>
59-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="8.0.0-beta.24113.2">
59+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="8.0.0-beta.24165.4">
6060
<Uri>https://github.com/dotnet/arcade</Uri>
61-
<Sha>da98edc4c3ea539f109ea320672136ceb32591a7</Sha>
61+
<Sha>f311667e0587f19c3fa9553a909975662107a351</Sha>
6262
</Dependency>
63-
<Dependency Name="Microsoft.DotNet.Build.Tasks.Templating" Version="8.0.0-beta.24113.2">
63+
<Dependency Name="Microsoft.DotNet.Build.Tasks.Templating" Version="8.0.0-beta.24165.4">
6464
<Uri>https://github.com/dotnet/arcade</Uri>
65-
<Sha>da98edc4c3ea539f109ea320672136ceb32591a7</Sha>
65+
<Sha>f311667e0587f19c3fa9553a909975662107a351</Sha>
6666
</Dependency>
67-
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="8.0.0-beta.24113.2">
67+
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="8.0.0-beta.24165.4">
6868
<Uri>https://github.com/dotnet/arcade</Uri>
69-
<Sha>da98edc4c3ea539f109ea320672136ceb32591a7</Sha>
69+
<Sha>f311667e0587f19c3fa9553a909975662107a351</Sha>
7070
</Dependency>
7171
</ToolsetDependencies>
7272
</Dependencies>

eng/Versions.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<MicrosoftNETCoreBrowserDebugHostTransportVersion>8.0.3-servicing.24114.23</MicrosoftNETCoreBrowserDebugHostTransportVersion>
3333
</PropertyGroup>
3434
<PropertyGroup Label="Dependencies from dotnet/arcade">
35-
<MicrosoftDotNetBuildTasksTemplatingVersion>8.0.0-beta.24113.2</MicrosoftDotNetBuildTasksTemplatingVersion>
35+
<MicrosoftDotNetBuildTasksTemplatingVersion>8.0.0-beta.24165.4</MicrosoftDotNetBuildTasksTemplatingVersion>
3636
</PropertyGroup>
3737
<PropertyGroup Label="Other dependencies">
3838
<!-- NB: This version affects Visual Studio compatibility. See https://learn.microsoft.com/visualstudio/extensibility/roslyn-version-support -->

eng/common/SetupNugetSources.ps1

+5-5
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ function AddPackageSource($sources, $SourceName, $SourceEndPoint, $creds, $Usern
4848
else {
4949
Write-Host "Package source $SourceName already present."
5050
}
51-
52-
AddCredential -Creds $creds -Source $SourceName -Username $Username -Password $pwd
51+
AddCredential -Creds $creds -Source $SourceName -Username $Username -pwd $pwd
5352
}
5453

5554
# Add a credential node for the specified source
@@ -82,6 +81,7 @@ function AddCredential($creds, $source, $username, $pwd) {
8281
$passwordElement.SetAttribute("key", "ClearTextPassword")
8382
$sourceElement.AppendChild($passwordElement) | Out-Null
8483
}
84+
8585
$passwordElement.SetAttribute("value", $pwd)
8686
}
8787

@@ -159,9 +159,9 @@ foreach ($dotnetVersion in $dotnetVersions) {
159159
$feedPrefix = "dotnet" + $dotnetVersion;
160160
$dotnetSource = $sources.SelectSingleNode("add[@key='$feedPrefix']")
161161
if ($dotnetSource -ne $null) {
162-
AddPackageSource -Sources $sources -SourceName "$feedPrefix-internal" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/internal/_packaging/$feedPrefix-internal/nuget/v2" -Creds $creds -Username $userName -Password $Password
163-
AddPackageSource -Sources $sources -SourceName "$feedPrefix-internal-transport" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/internal/_packaging/$feedPrefix-internal-transport/nuget/v2" -Creds $creds -Username $userName -Password $Password
162+
AddPackageSource -Sources $sources -SourceName "$feedPrefix-internal" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/internal/_packaging/$feedPrefix-internal/nuget/v2" -Creds $creds -Username $userName -pwd $Password
163+
AddPackageSource -Sources $sources -SourceName "$feedPrefix-internal-transport" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/internal/_packaging/$feedPrefix-internal-transport/nuget/v2" -Creds $creds -Username $userName -pwd $Password
164164
}
165165
}
166166

167-
$doc.Save($filename)
167+
$doc.Save($filename)

eng/common/post-build/publish-using-darc.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ param(
1212
try {
1313
. $PSScriptRoot\post-build-utils.ps1
1414

15-
$darc = Get-Darc
15+
$darc = Get-Darc
1616

1717
$optionalParams = [System.Collections.ArrayList]::new()
1818

@@ -46,7 +46,7 @@ try {
4646
}
4747

4848
Write-Host 'done.'
49-
}
49+
}
5050
catch {
5151
Write-Host $_
5252
Write-PipelineTelemetryError -Category 'PromoteBuild' -Message "There was an error while trying to publish build '$BuildId' to default channels."

eng/common/templates-official/job/job.yml

+29-42
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ parameters:
2525
enablePublishBuildAssets: false
2626
enablePublishTestResults: false
2727
enablePublishUsingPipelines: false
28+
enableBuildRetry: false
2829
disableComponentGovernance: ''
30+
componentGovernanceIgnoreDirectories: ''
2931
mergeTestResults: false
3032
testRunTitle: ''
3133
testResultsFormat: ''
@@ -34,7 +36,7 @@ parameters:
3436
runAsPublic: false
3537
# Sbom related params
3638
enableSbom: true
37-
PackageVersion: 6.0.0
39+
PackageVersion: 7.0.0
3840
BuildDropPath: '$(Build.SourcesDirectory)/artifacts'
3941

4042
jobs:
@@ -94,10 +96,20 @@ jobs:
9496
- ${{ if ne(variable.group, '') }}:
9597
- group: ${{ variable.group }}
9698

99+
# handle template variable syntax
100+
# example:
101+
# - template: path/to/template.yml
102+
# parameters:
103+
# [key]: [value]
104+
- ${{ if ne(variable.template, '') }}:
105+
- template: ${{ variable.template }}
106+
${{ if ne(variable.parameters, '') }}:
107+
parameters: ${{ variable.parameters }}
108+
97109
# handle key-value variable syntax.
98110
# example:
99111
# - [key]: [value]
100-
- ${{ if and(eq(variable.name, ''), eq(variable.group, '')) }}:
112+
- ${{ if and(eq(variable.name, ''), eq(variable.group, ''), eq(variable.template, '')) }}:
101113
- ${{ each pair in variable }}:
102114
- name: ${{ pair.key }}
103115
value: ${{ pair.value }}
@@ -127,9 +139,10 @@ jobs:
127139
continueOnError: ${{ parameters.continueOnError }}
128140
condition: and(succeeded(), in(variables['_SignType'], 'real', 'test'), eq(variables['Agent.Os'], 'Windows_NT'))
129141

142+
- ${{ if and(eq(parameters.runAsPublic, 'false'), eq(variables['System.TeamProject'], 'internal')) }}:
130143
- task: NuGetAuthenticate@1
131144

132-
- ${{ if or(eq(parameters.artifacts.download, 'true'), ne(parameters.artifacts.download, '')) }}:
145+
- ${{ if and(ne(parameters.artifacts.download, 'false'), ne(parameters.artifacts.download, '')) }}:
133146
- task: DownloadPipelineArtifact@2
134147
inputs:
135148
buildType: current
@@ -147,6 +160,7 @@ jobs:
147160
languages: ${{ coalesce(parameters.richCodeNavigationLanguage, 'csharp') }}
148161
environment: ${{ coalesce(parameters.richCodeNavigationEnvironment, 'production') }}
149162
richNavLogOutputDirectory: $(Build.SourcesDirectory)/artifacts/bin
163+
uploadRichNavArtifacts: ${{ coalesce(parameters.richCodeNavigationUploadArtifacts, false) }}
150164
continueOnError: true
151165

152166
- template: /eng/common/templates-official/steps/component-governance.yml
@@ -158,6 +172,7 @@ jobs:
158172
disableComponentGovernance: true
159173
${{ else }}:
160174
disableComponentGovernance: ${{ parameters.disableComponentGovernance }}
175+
componentGovernanceIgnoreDirectories: ${{ parameters.componentGovernanceIgnoreDirectories }}
161176

162177
- ${{ if eq(parameters.enableMicrobuild, 'true') }}:
163178
- ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
@@ -169,7 +184,7 @@ jobs:
169184
TeamName: $(_TeamName)
170185

171186
- ${{ if ne(parameters.artifacts.publish, '') }}:
172-
- ${{ if or(eq(parameters.artifacts.publish.artifacts, 'true'), ne(parameters.artifacts.publish.artifacts, '')) }}:
187+
- ${{ if and(ne(parameters.artifacts.publish.artifacts, 'false'), ne(parameters.artifacts.publish.artifacts, '')) }}:
173188
- task: CopyFiles@2
174189
displayName: Gather binaries for publish to artifacts
175190
inputs:
@@ -190,7 +205,7 @@ jobs:
190205
ArtifactName: ${{ coalesce(parameters.artifacts.publish.artifacts.name , 'Artifacts_$(Agent.Os)_$(_BuildConfig)') }}
191206
continueOnError: true
192207
condition: always()
193-
- ${{ if or(eq(parameters.artifacts.publish.logs, 'true'), ne(parameters.artifacts.publish.logs, '')) }}:
208+
- ${{ if and(ne(parameters.artifacts.publish.logs, 'false'), ne(parameters.artifacts.publish.logs, '')) }}:
194209
- task: 1ES.PublishPipelineArtifact@1
195210
inputs:
196211
targetPath: 'artifacts/log'
@@ -199,25 +214,6 @@ jobs:
199214
continueOnError: true
200215
condition: always()
201216

202-
- ${{ if or(eq(parameters.artifacts.publish.manifests, 'true'), ne(parameters.artifacts.publish.manifests, '')) }}:
203-
- ${{ if and(ne(parameters.enablePublishUsingPipelines, 'true'), eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
204-
- task: CopyFiles@2
205-
displayName: Gather Asset Manifests
206-
inputs:
207-
SourceFolder: '$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)/AssetManifest'
208-
TargetFolder: '$(Build.ArtifactStagingDirectory)/AssetManifests'
209-
continueOnError: ${{ parameters.continueOnError }}
210-
condition: and(succeeded(), eq(variables['_DotNetPublishToBlobFeed'], 'true'))
211-
212-
- task: 1ES.PublishBuildArtifacts@1
213-
displayName: Push Asset Manifests
214-
inputs:
215-
PathtoPublish: '$(Build.ArtifactStagingDirectory)/AssetManifests'
216-
PublishLocation: Container
217-
ArtifactName: AssetManifests
218-
continueOnError: ${{ parameters.continueOnError }}
219-
condition: and(succeeded(), eq(variables['_DotNetPublishToBlobFeed'], 'true'))
220-
221217
- ${{ if ne(parameters.enablePublishBuildArtifacts, 'false') }}:
222218
- task: 1ES.PublishBuildArtifacts@1
223219
displayName: Publish Logs
@@ -250,27 +246,18 @@ jobs:
250246
mergeTestResults: ${{ parameters.mergeTestResults }}
251247
continueOnError: true
252248
condition: always()
253-
254-
- ${{ if and(eq(parameters.enablePublishBuildAssets, true), ne(parameters.enablePublishUsingPipelines, 'true'), eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
255-
- task: CopyFiles@2
256-
displayName: Gather Asset Manifests
257-
inputs:
258-
SourceFolder: '$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)/AssetManifest'
259-
TargetFolder: '$(Build.StagingDirectory)/AssetManifests'
260-
continueOnError: ${{ parameters.continueOnError }}
261-
condition: and(succeeded(), eq(variables['_DotNetPublishToBlobFeed'], 'true'))
262-
263-
- task: 1ES.PublishBuildArtifacts@1
264-
displayName: Push Asset Manifests
265-
inputs:
266-
PathtoPublish: '$(Build.StagingDirectory)/AssetManifests'
267-
PublishLocation: Container
268-
ArtifactName: AssetManifests
269-
continueOnError: ${{ parameters.continueOnError }}
270-
condition: and(succeeded(), eq(variables['_DotNetPublishToBlobFeed'], 'true'))
271249

272250
- ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest'), eq(parameters.enableSbom, 'true')) }}:
273251
- template: /eng/common/templates-official/steps/generate-sbom.yml
274252
parameters:
275253
PackageVersion: ${{ parameters.packageVersion}}
276254
BuildDropPath: ${{ parameters.buildDropPath }}
255+
IgnoreDirectories: ${{ parameters.componentGovernanceIgnoreDirectories }}
256+
257+
- ${{ if eq(parameters.enableBuildRetry, 'true') }}:
258+
- task: 1ES.PublishPipelineArtifact@1
259+
inputs:
260+
targetPath: '$(Build.SourcesDirectory)\eng\common\BuildConfiguration'
261+
artifactName: 'BuildConfiguration'
262+
displayName: 'Publish build retry configuration'
263+
continueOnError: true

eng/common/templates-official/job/onelocbuild.yml

+24-21
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ parameters:
1414
ReusePr: true
1515
UseLfLineEndings: true
1616
UseCheckedInLocProjectJson: false
17+
SkipLocProjectJsonGeneration: false
1718
LanguageSet: VS_Main_Languages
1819
LclSource: lclFilesInRepo
1920
LclPackageId: ''
@@ -22,13 +23,25 @@ parameters:
2223
MirrorRepo: ''
2324
MirrorBranch: main
2425
condition: ''
26+
JobNameSuffix: ''
2527

2628
jobs:
27-
- job: OneLocBuild
29+
- job: OneLocBuild${{ parameters.JobNameSuffix }}
2830

2931
dependsOn: ${{ parameters.dependsOn }}
3032

31-
displayName: OneLocBuild
33+
displayName: OneLocBuild${{ parameters.JobNameSuffix }}
34+
35+
variables:
36+
- group: OneLocBuildVariables # Contains the CeapexPat and GithubPat
37+
- name: _GenerateLocProjectArguments
38+
value: -SourcesDirectory ${{ parameters.SourcesDirectory }}
39+
-LanguageSet "${{ parameters.LanguageSet }}"
40+
-CreateNeutralXlfs
41+
- ${{ if eq(parameters.UseCheckedInLocProjectJson, 'true') }}:
42+
- name: _GenerateLocProjectArguments
43+
value: ${{ variables._GenerateLocProjectArguments }} -UseCheckedInLocProjectJson
44+
- template: /eng/common/templates-official/variables/pool-providers.yml
3245

3346
${{ if ne(parameters.pool, '') }}:
3447
pool: ${{ parameters.pool }}
@@ -42,28 +55,18 @@ jobs:
4255
os: windows
4356
# If it's not devdiv, it's dnceng
4457
${{ if ne(variables['System.TeamProject'], 'DevDiv') }}:
45-
name: NetCore1ESPool-Svc-Internal
58+
name: $(DncEngInternalBuildPool)
4659
image: 1es-windows-2022-pt
4760
os: windows
4861

49-
variables:
50-
- group: OneLocBuildVariables # Contains the CeapexPat and GithubPat
51-
- name: _GenerateLocProjectArguments
52-
value: -SourcesDirectory ${{ parameters.SourcesDirectory }}
53-
-LanguageSet "${{ parameters.LanguageSet }}"
54-
-CreateNeutralXlfs
55-
- ${{ if eq(parameters.UseCheckedInLocProjectJson, 'true') }}:
56-
- name: _GenerateLocProjectArguments
57-
value: ${{ variables._GenerateLocProjectArguments }} -UseCheckedInLocProjectJson
58-
59-
6062
steps:
61-
- task: Powershell@2
62-
inputs:
63-
filePath: $(Build.SourcesDirectory)/eng/common/generate-locproject.ps1
64-
arguments: $(_GenerateLocProjectArguments)
65-
displayName: Generate LocProject.json
66-
condition: ${{ parameters.condition }}
63+
- ${{ if ne(parameters.SkipLocProjectJsonGeneration, 'true') }}:
64+
- task: Powershell@2
65+
inputs:
66+
filePath: $(Build.SourcesDirectory)/eng/common/generate-locproject.ps1
67+
arguments: $(_GenerateLocProjectArguments)
68+
displayName: Generate LocProject.json
69+
condition: ${{ parameters.condition }}
6770

6871
- task: OneLocBuild@2
6972
displayName: OneLocBuild
@@ -75,8 +78,8 @@ jobs:
7578
lclSource: ${{ parameters.LclSource }}
7679
lclPackageId: ${{ parameters.LclPackageId }}
7780
isCreatePrSelected: ${{ parameters.CreatePr }}
81+
isAutoCompletePrSelected: ${{ parameters.AutoCompletePr }}
7882
${{ if eq(parameters.CreatePr, true) }}:
79-
isAutoCompletePrSelected: ${{ parameters.AutoCompletePr }}
8083
isUseLfLineEndingsSelected: ${{ parameters.UseLfLineEndings }}
8184
${{ if eq(parameters.RepoType, 'gitHub') }}:
8285
isShouldReusePrSelected: ${{ parameters.ReusePr }}

0 commit comments

Comments
 (0)