Skip to content

Commit 1530870

Browse files
committed
Merge in 'release/7.0' changes
2 parents bad79e6 + eee5a7b commit 1530870

File tree

46 files changed

+2059
-1791
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+2059
-1791
lines changed

.azure/pipelines/ci.yml

Lines changed: 701 additions & 621 deletions
Large diffs are not rendered by default.

.azure/pipelines/jobs/default-build.yml

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,15 @@
3333
# This build definition is enabled for code signing. (Only applies to Windows)
3434
# buildDirectory: string
3535
# Specifies what directory to run build.sh/cmd
36-
# skipComponentGovernanceDetection: boolean
37-
# Determines if component governance detection can be skipped
3836
# isAzDOTestingJob: boolean
3937
# Determines if this job runs tests on the AzDO build agent. Controls some (currently Windows-only)
4038
# installations and enables test publication (unless enablePublishTestResults is overridden).
4139
# enablePublishTestResults: boolean
4240
# Determines if test results should be published. Defaults to the isAzDOTestingJob setting.
41+
# enableSbom: boolean
42+
# Determines if an SBOM should be created. Defaults to true. Ignored in public builds.
43+
# variables: [array]
44+
# Job-specific variables. Defined using either name/value pairs or a variable list (using name or group syntax).
4345
#
4446
# See https://docs.microsoft.com/en-us/vsts/pipelines/yaml-schema for details
4547
#
@@ -57,9 +59,10 @@ parameters:
5759
condition: ''
5860
codeSign: false
5961
buildDirectory: $(System.DefaultWorkingDirectory)/eng/
60-
skipComponentGovernanceDetection: false
6162
isAzDOTestingJob: false
6263
enablePublishTestResults: ''
64+
enableSbom: true
65+
variables: []
6366

6467
configuration: 'Release'
6568
container: ''
@@ -97,6 +100,7 @@ jobs:
97100
testResultsFormat: xUnit # Have no vsTest results in any job.
98101
mergeTestResults: true
99102
testRunTitle: ${{ parameters.testRunTitle }}
103+
enableSbom: ${{ parameters.enableSbom }}
100104
enableTelemetry: true
101105
helixRepo: dotnet/aspnetcore
102106
helixType: build.product/
@@ -157,6 +161,28 @@ jobs:
157161
- LANGUAGE: 'en_US.UTF-8'
158162
# Log environment variables in binary logs to ease debugging
159163
- MSBUILDLOGALLENVIRONMENTVARIABLES: true
164+
# Rely on task Arcade injects, not auto-injected build step.
165+
- skipComponentGovernanceDetection: true
166+
- ${{ each variable in parameters.variables }}:
167+
# handle a variable list using "name" and "value" properties
168+
# example:
169+
# - name: [key]
170+
# value: [value]
171+
- ${{ if ne(variable.name, '') }}:
172+
- name: ${{ variable.name }}
173+
value: ${{ variable.value }}
174+
175+
# handle variable groups
176+
- ${{ if ne(variable.group, '') }}:
177+
- group: ${{ variable.group }}
178+
179+
# handle name/value pairs (converting them into variable list entries)
180+
# example:
181+
# - [name]: [value]
182+
- ${{ if and(eq(variable.name, ''), eq(variable.group, '')) }}:
183+
- ${{ each pair in variable }}:
184+
- name: ${{ pair.key }}
185+
value: ${{ pair.value }}
160186
steps:
161187
- ${{ if ne(parameters.agentOs, 'Windows') }}:
162188
- script: df -h
@@ -271,12 +297,6 @@ jobs:
271297
continueOnError: true
272298
condition: always()
273299

274-
# Run component detection after all successful Build:* jobs unless overridden e.g. for Alpine build.
275-
# Make sure auto-injected component detection does _not_ execute in other jobs nor when overridden.
276-
- ${{ if or(not(startsWith(parameters.jobDisplayName, 'Build:')), eq(parameters.skipComponentGovernanceDetection, 'true')) }}:
277-
- script: echo "##vso[task.setvariable variable=CG_RAN]true"
278-
displayName: 'Skip Component Detection'
279-
280300
- ${{ each artifact in parameters.artifacts }}:
281301
- task: PublishBuildArtifacts@1
282302
displayName: Upload artifacts from ${{ artifact.path }}

.config/tsaoptions.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"areaPath": "DevDiv\\ASP.NET Core",
3+
"codebaseName": "AspNetCore",
4+
"instanceUrl": "https://devdiv.visualstudio.com/",
5+
"iterationPath": "DevDiv",
6+
"notificationAliases": [
7+
8+
],
9+
"projectName": "DEVDIV",
10+
"repositoryName": "AspNetCore",
11+
"template": "TFSDEVDIV"
12+
}

NuGet.config

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,11 @@
1616
<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
1717
<add key="dotnet7" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json" />
1818
<add key="dotnet7-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7-transport/nuget/v3/index.json" />
19-
<add key="dotnet6" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json" />
20-
<add key="dotnet6-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6-transport/nuget/v3/index.json" />
21-
<add key="dotnet5" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5/nuget/v3/index.json" />
22-
<add key="dotnet5-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5-transport/nuget/v3/index.json" />
23-
<add key="dotnet-experimental" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-experimental/nuget/v3/index.json" />
2419
<add key="dotnet-public" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" />
25-
<!-- Used for the SiteExtension 3.1 bits that are included in the 5.0 build -->
20+
<!-- Used for the SiteExtension bits that are included in the 7.0 build -->
2621
<add key="dotnet31-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet3.1-transport/nuget/v3/index.json" />
22+
<add key="dotnet5-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5-transport/nuget/v3/index.json" />
23+
<add key="dotnet6-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6-transport/nuget/v3/index.json" />
2724
<!-- Used for the Rich Navigation indexing task -->
2825
<add key="richnav" value="https://pkgs.dev.azure.com/azure-public/vside/_packaging/vs-buildservices/nuget/v3/index.json" />
2926
</packageSources>

0 commit comments

Comments
 (0)