Skip to content

Commit bdd0398

Browse files
[main] Update dependencies from dotnet/arcade (#16799)
* Update dependencies from https://github.com/dotnet/arcade build 20240301.4 Microsoft.DotNet.Arcade.Sdk From Version 8.0.0-beta.24123.1 -> To Version 8.0.0-beta.24151.4 * Update dependencies from https://github.com/dotnet/arcade build 20240301.4 Microsoft.DotNet.Arcade.Sdk From Version 8.0.0-beta.24123.1 -> To Version 8.0.0-beta.24151.4 * Update dependencies from https://github.com/dotnet/arcade build 20240301.4 Microsoft.DotNet.Arcade.Sdk From Version 8.0.0-beta.24123.1 -> To Version 8.0.0-beta.24151.4 --------- Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
1 parent 77b9afd commit bdd0398

26 files changed

+1751
-3
lines changed

eng/Version.Details.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
</Dependency>
3131
</ProductDependencies>
3232
<ToolsetDependencies>
33-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="8.0.0-beta.24123.1">
33+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="8.0.0-beta.24151.4">
3434
<Uri>https://github.com/dotnet/arcade</Uri>
35-
<Sha>042763a811fd94dc3556253d4c64118dd665216e</Sha>
35+
<Sha>cbb61c3a9a42e7c3cce17ee453ff5ecdc7f69282</Sha>
3636
<SourceBuild RepoName="arcade" ManagedOnly="true" />
3737
</Dependency>
3838
<Dependency Name="Microsoft.DotNet.XliffTasks" Version="1.0.0-beta.23475.1" CoherentParentDependency="Microsoft.DotNet.Arcade.Sdk">
Lines changed: 255 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,255 @@
1+
# Internal resources (telemetry, microbuild) can only be accessed from non-public projects,
2+
# and some (Microbuild) should only be applied to non-PR cases for internal builds.
3+
4+
parameters:
5+
# Job schema parameters - https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=vsts&tabs=schema#job
6+
cancelTimeoutInMinutes: ''
7+
condition: ''
8+
container: ''
9+
continueOnError: false
10+
dependsOn: ''
11+
displayName: ''
12+
pool: ''
13+
steps: []
14+
strategy: ''
15+
timeoutInMinutes: ''
16+
variables: []
17+
workspace: ''
18+
19+
# Job base template specific parameters
20+
# See schema documentation - https://github.com/dotnet/arcade/blob/master/Documentation/AzureDevOps/TemplateSchema.md
21+
artifacts: ''
22+
enableMicrobuild: false
23+
enablePublishBuildArtifacts: false
24+
enablePublishBuildAssets: false
25+
enablePublishTestResults: false
26+
enablePublishUsingPipelines: false
27+
enableBuildRetry: false
28+
disableComponentGovernance: ''
29+
componentGovernanceIgnoreDirectories: ''
30+
mergeTestResults: false
31+
testRunTitle: ''
32+
testResultsFormat: ''
33+
name: ''
34+
preSteps: []
35+
runAsPublic: false
36+
# Sbom related params
37+
enableSbom: true
38+
PackageVersion: 7.0.0
39+
BuildDropPath: '$(Build.SourcesDirectory)/artifacts'
40+
41+
jobs:
42+
- job: ${{ parameters.name }}
43+
44+
${{ if ne(parameters.cancelTimeoutInMinutes, '') }}:
45+
cancelTimeoutInMinutes: ${{ parameters.cancelTimeoutInMinutes }}
46+
47+
${{ if ne(parameters.condition, '') }}:
48+
condition: ${{ parameters.condition }}
49+
50+
${{ if ne(parameters.container, '') }}:
51+
container: ${{ parameters.container }}
52+
53+
${{ if ne(parameters.continueOnError, '') }}:
54+
continueOnError: ${{ parameters.continueOnError }}
55+
56+
${{ if ne(parameters.dependsOn, '') }}:
57+
dependsOn: ${{ parameters.dependsOn }}
58+
59+
${{ if ne(parameters.displayName, '') }}:
60+
displayName: ${{ parameters.displayName }}
61+
62+
${{ if ne(parameters.pool, '') }}:
63+
pool: ${{ parameters.pool }}
64+
65+
${{ if ne(parameters.strategy, '') }}:
66+
strategy: ${{ parameters.strategy }}
67+
68+
${{ if ne(parameters.timeoutInMinutes, '') }}:
69+
timeoutInMinutes: ${{ parameters.timeoutInMinutes }}
70+
71+
variables:
72+
- ${{ if ne(parameters.enableTelemetry, 'false') }}:
73+
- name: DOTNET_CLI_TELEMETRY_PROFILE
74+
value: '$(Build.Repository.Uri)'
75+
- ${{ if eq(parameters.enableRichCodeNavigation, 'true') }}:
76+
- name: EnableRichCodeNavigation
77+
value: 'true'
78+
# Retry signature validation up to three times, waiting 2 seconds between attempts.
79+
# See https://learn.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu3028#retry-untrusted-root-failures
80+
- name: NUGET_EXPERIMENTAL_CHAIN_BUILD_RETRY_POLICY
81+
value: 3,2000
82+
- ${{ each variable in parameters.variables }}:
83+
# handle name-value variable syntax
84+
# example:
85+
# - name: [key]
86+
# value: [value]
87+
- ${{ if ne(variable.name, '') }}:
88+
- name: ${{ variable.name }}
89+
value: ${{ variable.value }}
90+
91+
# handle variable groups
92+
- ${{ if ne(variable.group, '') }}:
93+
- group: ${{ variable.group }}
94+
95+
# handle template variable syntax
96+
# example:
97+
# - template: path/to/template.yml
98+
# parameters:
99+
# [key]: [value]
100+
- ${{ if ne(variable.template, '') }}:
101+
- template: ${{ variable.template }}
102+
${{ if ne(variable.parameters, '') }}:
103+
parameters: ${{ variable.parameters }}
104+
105+
# handle key-value variable syntax.
106+
# example:
107+
# - [key]: [value]
108+
- ${{ if and(eq(variable.name, ''), eq(variable.group, ''), eq(variable.template, '')) }}:
109+
- ${{ each pair in variable }}:
110+
- name: ${{ pair.key }}
111+
value: ${{ pair.value }}
112+
113+
# DotNet-HelixApi-Access provides 'HelixApiAccessToken' for internal builds
114+
- ${{ if and(eq(parameters.enableTelemetry, 'true'), eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
115+
- group: DotNet-HelixApi-Access
116+
117+
${{ if ne(parameters.workspace, '') }}:
118+
workspace: ${{ parameters.workspace }}
119+
120+
steps:
121+
- ${{ if ne(parameters.preSteps, '') }}:
122+
- ${{ each preStep in parameters.preSteps }}:
123+
- ${{ preStep }}
124+
125+
- ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
126+
- ${{ if eq(parameters.enableMicrobuild, 'true') }}:
127+
- task: MicroBuildSigningPlugin@3
128+
displayName: Install MicroBuild plugin
129+
inputs:
130+
signType: $(_SignType)
131+
zipSources: false
132+
feedSource: https://dnceng.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json
133+
env:
134+
TeamName: $(_TeamName)
135+
continueOnError: ${{ parameters.continueOnError }}
136+
condition: and(succeeded(), in(variables['_SignType'], 'real', 'test'), eq(variables['Agent.Os'], 'Windows_NT'))
137+
138+
- ${{ if and(eq(parameters.runAsPublic, 'false'), eq(variables['System.TeamProject'], 'internal')) }}:
139+
- task: NuGetAuthenticate@1
140+
141+
- ${{ if and(ne(parameters.artifacts.download, 'false'), ne(parameters.artifacts.download, '')) }}:
142+
- task: DownloadPipelineArtifact@2
143+
inputs:
144+
buildType: current
145+
artifactName: ${{ coalesce(parameters.artifacts.download.name, 'Artifacts_$(Agent.OS)_$(_BuildConfig)') }}
146+
targetPath: ${{ coalesce(parameters.artifacts.download.path, 'artifacts') }}
147+
itemPattern: ${{ coalesce(parameters.artifacts.download.pattern, '**') }}
148+
149+
- ${{ each step in parameters.steps }}:
150+
- ${{ step }}
151+
152+
- ${{ if eq(parameters.enableRichCodeNavigation, true) }}:
153+
- task: RichCodeNavIndexer@0
154+
displayName: RichCodeNav Upload
155+
inputs:
156+
languages: ${{ coalesce(parameters.richCodeNavigationLanguage, 'csharp') }}
157+
environment: ${{ coalesce(parameters.richCodeNavigationEnvironment, 'production') }}
158+
richNavLogOutputDirectory: $(Build.SourcesDirectory)/artifacts/bin
159+
uploadRichNavArtifacts: ${{ coalesce(parameters.richCodeNavigationUploadArtifacts, false) }}
160+
continueOnError: true
161+
162+
- template: /eng/common/templates-official/steps/component-governance.yml
163+
parameters:
164+
${{ if eq(parameters.disableComponentGovernance, '') }}:
165+
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest'), eq(parameters.runAsPublic, 'false'), or(startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'), startsWith(variables['Build.SourceBranch'], 'refs/heads/dotnet/'), startsWith(variables['Build.SourceBranch'], 'refs/heads/microsoft/'), eq(variables['Build.SourceBranch'], 'refs/heads/main'))) }}:
166+
disableComponentGovernance: false
167+
${{ else }}:
168+
disableComponentGovernance: true
169+
${{ else }}:
170+
disableComponentGovernance: ${{ parameters.disableComponentGovernance }}
171+
componentGovernanceIgnoreDirectories: ${{ parameters.componentGovernanceIgnoreDirectories }}
172+
173+
- ${{ if eq(parameters.enableMicrobuild, 'true') }}:
174+
- ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
175+
- task: MicroBuildCleanup@1
176+
displayName: Execute Microbuild cleanup tasks
177+
condition: and(always(), in(variables['_SignType'], 'real', 'test'), eq(variables['Agent.Os'], 'Windows_NT'))
178+
continueOnError: ${{ parameters.continueOnError }}
179+
env:
180+
TeamName: $(_TeamName)
181+
182+
- ${{ if ne(parameters.artifacts.publish, '') }}:
183+
- ${{ if and(ne(parameters.artifacts.publish.artifacts, 'false'), ne(parameters.artifacts.publish.artifacts, '')) }}:
184+
- task: CopyFiles@2
185+
displayName: Gather binaries for publish to artifacts
186+
inputs:
187+
SourceFolder: 'artifacts/bin'
188+
Contents: '**'
189+
TargetFolder: '$(Build.ArtifactStagingDirectory)/artifacts/bin'
190+
- task: CopyFiles@2
191+
displayName: Gather packages for publish to artifacts
192+
inputs:
193+
SourceFolder: 'artifacts/packages'
194+
Contents: '**'
195+
TargetFolder: '$(Build.ArtifactStagingDirectory)/artifacts/packages'
196+
- task: 1ES.PublishBuildArtifacts@1
197+
displayName: Publish pipeline artifacts
198+
inputs:
199+
PathtoPublish: '$(Build.ArtifactStagingDirectory)/artifacts'
200+
PublishLocation: Container
201+
ArtifactName: ${{ coalesce(parameters.artifacts.publish.artifacts.name , 'Artifacts_$(Agent.Os)_$(_BuildConfig)') }}
202+
continueOnError: true
203+
condition: always()
204+
- ${{ if and(ne(parameters.artifacts.publish.logs, 'false'), ne(parameters.artifacts.publish.logs, '')) }}:
205+
- publish: artifacts/log
206+
artifact: ${{ coalesce(parameters.artifacts.publish.logs.name, 'Logs_Build_$(Agent.Os)_$(_BuildConfig)') }}
207+
displayName: Publish logs
208+
continueOnError: true
209+
condition: always()
210+
211+
- ${{ if ne(parameters.enablePublishBuildArtifacts, 'false') }}:
212+
- task: 1ES.PublishBuildArtifacts@1
213+
displayName: Publish Logs
214+
inputs:
215+
PathtoPublish: '$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)'
216+
PublishLocation: Container
217+
ArtifactName: ${{ coalesce(parameters.enablePublishBuildArtifacts.artifactName, '$(Agent.Os)_$(Agent.JobName)' ) }}
218+
continueOnError: true
219+
condition: always()
220+
221+
- ${{ if or(and(eq(parameters.enablePublishTestResults, 'true'), eq(parameters.testResultsFormat, '')), eq(parameters.testResultsFormat, 'xunit')) }}:
222+
- task: PublishTestResults@2
223+
displayName: Publish XUnit Test Results
224+
inputs:
225+
testResultsFormat: 'xUnit'
226+
testResultsFiles: '*.xml'
227+
searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)'
228+
testRunTitle: ${{ coalesce(parameters.testRunTitle, parameters.name, '$(System.JobName)') }}-xunit
229+
mergeTestResults: ${{ parameters.mergeTestResults }}
230+
continueOnError: true
231+
condition: always()
232+
- ${{ if or(and(eq(parameters.enablePublishTestResults, 'true'), eq(parameters.testResultsFormat, '')), eq(parameters.testResultsFormat, 'vstest')) }}:
233+
- task: PublishTestResults@2
234+
displayName: Publish TRX Test Results
235+
inputs:
236+
testResultsFormat: 'VSTest'
237+
testResultsFiles: '*.trx'
238+
searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)'
239+
testRunTitle: ${{ coalesce(parameters.testRunTitle, parameters.name, '$(System.JobName)') }}-trx
240+
mergeTestResults: ${{ parameters.mergeTestResults }}
241+
continueOnError: true
242+
condition: always()
243+
244+
- ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest'), eq(parameters.enableSbom, 'true')) }}:
245+
- template: /eng/common/templates-official/steps/generate-sbom.yml
246+
parameters:
247+
PackageVersion: ${{ parameters.packageVersion}}
248+
BuildDropPath: ${{ parameters.buildDropPath }}
249+
IgnoreDirectories: ${{ parameters.componentGovernanceIgnoreDirectories }}
250+
251+
- ${{ if eq(parameters.enableBuildRetry, 'true') }}:
252+
- publish: $(Build.SourcesDirectory)\eng\common\BuildConfiguration
253+
artifact: BuildConfiguration
254+
displayName: Publish build retry configuration
255+
continueOnError: true
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
parameters:
2+
# Optional: dependencies of the job
3+
dependsOn: ''
4+
5+
# Optional: A defined YAML pool - https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=vsts&tabs=schema#pool
6+
pool: ''
7+
8+
CeapexPat: $(dn-bot-ceapex-package-r) # PAT for the loc AzDO instance https://dev.azure.com/ceapex
9+
GithubPat: $(BotAccount-dotnet-bot-repo-PAT)
10+
11+
SourcesDirectory: $(Build.SourcesDirectory)
12+
CreatePr: true
13+
AutoCompletePr: false
14+
ReusePr: true
15+
UseLfLineEndings: true
16+
UseCheckedInLocProjectJson: false
17+
SkipLocProjectJsonGeneration: false
18+
LanguageSet: VS_Main_Languages
19+
LclSource: lclFilesInRepo
20+
LclPackageId: ''
21+
RepoType: gitHub
22+
GitHubOrg: dotnet
23+
MirrorRepo: ''
24+
MirrorBranch: main
25+
condition: ''
26+
JobNameSuffix: ''
27+
28+
jobs:
29+
- job: OneLocBuild${{ parameters.JobNameSuffix }}
30+
31+
dependsOn: ${{ parameters.dependsOn }}
32+
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
45+
46+
${{ if ne(parameters.pool, '') }}:
47+
pool: ${{ parameters.pool }}
48+
${{ if eq(parameters.pool, '') }}:
49+
pool:
50+
# We don't use the collection uri here because it might vary (.visualstudio.com vs. dev.azure.com)
51+
${{ if eq(variables['System.TeamProject'], 'DevDiv') }}:
52+
name: AzurePipelines-EO
53+
image: 1ESPT-Windows2022
54+
demands: Cmd
55+
os: windows
56+
# If it's not devdiv, it's dnceng
57+
${{ if ne(variables['System.TeamProject'], 'DevDiv') }}:
58+
name: $(DncEngInternalBuildPool)
59+
image: 1es-windows-2022-pt
60+
os: windows
61+
62+
steps:
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 }}
70+
71+
- task: OneLocBuild@2
72+
displayName: OneLocBuild
73+
env:
74+
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
75+
inputs:
76+
locProj: eng/Localize/LocProject.json
77+
outDir: $(Build.ArtifactStagingDirectory)
78+
lclSource: ${{ parameters.LclSource }}
79+
lclPackageId: ${{ parameters.LclPackageId }}
80+
isCreatePrSelected: ${{ parameters.CreatePr }}
81+
isAutoCompletePrSelected: ${{ parameters.AutoCompletePr }}
82+
${{ if eq(parameters.CreatePr, true) }}:
83+
isUseLfLineEndingsSelected: ${{ parameters.UseLfLineEndings }}
84+
${{ if eq(parameters.RepoType, 'gitHub') }}:
85+
isShouldReusePrSelected: ${{ parameters.ReusePr }}
86+
packageSourceAuth: patAuth
87+
patVariable: ${{ parameters.CeapexPat }}
88+
${{ if eq(parameters.RepoType, 'gitHub') }}:
89+
repoType: ${{ parameters.RepoType }}
90+
gitHubPatVariable: "${{ parameters.GithubPat }}"
91+
${{ if ne(parameters.MirrorRepo, '') }}:
92+
isMirrorRepoSelected: true
93+
gitHubOrganization: ${{ parameters.GitHubOrg }}
94+
mirrorRepo: ${{ parameters.MirrorRepo }}
95+
mirrorBranch: ${{ parameters.MirrorBranch }}
96+
condition: ${{ parameters.condition }}
97+
98+
- task: 1ES.PublishBuildArtifacts@1
99+
displayName: Publish Localization Files
100+
inputs:
101+
PathtoPublish: '$(Build.ArtifactStagingDirectory)/loc'
102+
PublishLocation: Container
103+
ArtifactName: Loc
104+
condition: ${{ parameters.condition }}
105+
106+
- task: 1ES.PublishBuildArtifacts@1
107+
displayName: Publish LocProject.json
108+
inputs:
109+
PathtoPublish: '$(Build.SourcesDirectory)/eng/Localize/'
110+
PublishLocation: Container
111+
ArtifactName: Loc
112+
condition: ${{ parameters.condition }}

0 commit comments

Comments
 (0)