2019-10-03 06:36:49 +03:00
|
|
|
trigger:
|
|
|
|
batch: true
|
|
|
|
branches:
|
|
|
|
include:
|
2021-03-23 02:08:44 +03:00
|
|
|
- main
|
2020-02-20 02:29:32 +03:00
|
|
|
- release/*
|
2020-08-10 18:57:48 +03:00
|
|
|
- internal/release/*
|
2020-02-12 05:04:22 +03:00
|
|
|
- experimental/*
|
2019-10-03 06:36:49 +03:00
|
|
|
|
2019-10-08 18:06:07 +03:00
|
|
|
name: $(Date:yyyyMMdd)$(Rev:.r)
|
2019-10-03 06:36:49 +03:00
|
|
|
|
|
|
|
variables:
|
2024-03-13 03:32:43 +03:00
|
|
|
- name: TeamName
|
|
|
|
value: dotnet-core-acquisition
|
2019-10-03 06:36:49 +03:00
|
|
|
# Skip Running CI tests
|
2024-03-13 03:32:43 +03:00
|
|
|
- name: SkipTests
|
2024-03-18 22:26:14 +03:00
|
|
|
value: true
|
2019-10-03 06:36:49 +03:00
|
|
|
# Set Official Build Id
|
2024-03-13 03:32:43 +03:00
|
|
|
- name: OfficialBuildId
|
|
|
|
value: $(Build.BuildNumber)
|
|
|
|
- ${{ if or(startswith(variables['Build.SourceBranch'], 'refs/heads/release/'), startswith(variables['Build.SourceBranch'], 'refs/heads/internal/release/'), eq(variables['Build.Reason'], 'Manual')) }}:
|
|
|
|
- name: PostBuildSign
|
|
|
|
value: false
|
|
|
|
- ${{ else }}:
|
|
|
|
- name: PostBuildSign
|
|
|
|
value: true
|
2019-10-03 06:36:49 +03:00
|
|
|
|
|
|
|
# Set the target blob feed for package publish during official and validation builds.
|
2024-03-13 03:32:43 +03:00
|
|
|
- name: _DotNetArtifactsCategory
|
|
|
|
value: .NETCore
|
|
|
|
- name: _DotNetValidationArtifactsCategory
|
|
|
|
value: .NETCoreValidation
|
2019-10-03 06:36:49 +03:00
|
|
|
|
|
|
|
# Produce test-signed build for PR and Public builds
|
2024-03-13 03:32:43 +03:00
|
|
|
- name: SignType
|
|
|
|
value: $[ coalesce(variables.OfficialSignType, 'real') ]
|
2019-10-03 06:36:49 +03:00
|
|
|
|
2024-03-13 03:32:43 +03:00
|
|
|
resources:
|
|
|
|
repositories:
|
|
|
|
- repository: 1ESPipelineTemplates
|
|
|
|
type: git
|
|
|
|
name: 1ESPipelineTemplates/1ESPipelineTemplates
|
|
|
|
ref: refs/tags/release
|
|
|
|
extends:
|
|
|
|
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
|
|
|
|
parameters:
|
2024-09-09 22:05:30 +03:00
|
|
|
sdl:
|
2024-09-12 20:26:06 +03:00
|
|
|
policheck:
|
|
|
|
enabled: true
|
|
|
|
tsa:
|
|
|
|
enabled: true
|
|
|
|
configFile: '$(Build.SourcesDirectory)/eng/pipelines/tsaoptions.json'
|
2024-03-13 03:32:43 +03:00
|
|
|
featureFlags:
|
|
|
|
autoBaseline: true
|
|
|
|
pool:
|
|
|
|
name: NetCore1ESPool-Internal
|
2024-04-16 20:24:29 +03:00
|
|
|
image: 1es-windows-2022
|
2024-03-13 03:32:43 +03:00
|
|
|
os: windows
|
|
|
|
customBuildTags:
|
|
|
|
- ES365AIMigrationTooling
|
|
|
|
stages:
|
|
|
|
- stage: Build
|
|
|
|
jobs:
|
2019-10-03 06:36:49 +03:00
|
|
|
|
2024-03-13 03:32:43 +03:00
|
|
|
# Windows x64
|
|
|
|
- template: /eng/pipelines/jobs/windows-build.yml@self
|
|
|
|
parameters:
|
|
|
|
name: win_x64
|
2024-03-18 22:26:14 +03:00
|
|
|
displayName: win-x64
|
2024-03-13 03:32:43 +03:00
|
|
|
targetArchitecture: x64
|
2019-10-03 06:36:49 +03:00
|
|
|
|
2024-03-13 03:32:43 +03:00
|
|
|
# Windows x86
|
|
|
|
- template: /eng/pipelines/jobs/windows-build.yml@self
|
|
|
|
parameters:
|
|
|
|
name: win_x86
|
2024-03-18 22:26:14 +03:00
|
|
|
displayName: win-x86
|
2024-03-13 03:32:43 +03:00
|
|
|
targetArchitecture: x86
|
2019-10-03 06:36:49 +03:00
|
|
|
|
2024-03-13 03:32:43 +03:00
|
|
|
# Windows arm64
|
|
|
|
- template: /eng/pipelines/jobs/windows-build.yml@self
|
|
|
|
parameters:
|
|
|
|
name: win_arm64
|
2024-03-18 22:26:14 +03:00
|
|
|
displayName: win-arm64
|
2024-03-13 03:32:43 +03:00
|
|
|
targetArchitecture: arm64
|
2019-10-03 06:36:49 +03:00
|
|
|
|
2024-03-13 03:32:43 +03:00
|
|
|
# Publish to Build Asset Registry in order to generate the ReleaseConfigs artifact.
|
|
|
|
- template: /eng/common/templates-official/job/publish-build-assets.yml@self
|
|
|
|
parameters:
|
|
|
|
publishUsingPipelines: true
|
|
|
|
publishAssetsImmediately: true
|
2024-03-18 22:26:14 +03:00
|
|
|
dependsOn:
|
|
|
|
- win_x64
|
|
|
|
- win_x86
|
|
|
|
- win_arm64
|
2024-03-13 03:32:43 +03:00
|
|
|
pool:
|
|
|
|
name: NetCore1ESPool-Internal
|
|
|
|
demands: ImageOverride -equals windows.vs2022preview.amd64
|
2020-04-23 22:03:13 +03:00
|
|
|
|
2024-03-13 03:32:43 +03:00
|
|
|
# Stages-based publishing entry point
|
|
|
|
- template: /eng/common/templates-official/post-build/post-build.yml@self
|
2019-10-03 06:36:49 +03:00
|
|
|
parameters:
|
2024-03-13 03:32:43 +03:00
|
|
|
enableSymbolValidation: false
|
|
|
|
enableSigningValidation: false
|
|
|
|
enableNugetValidation: false
|
|
|
|
enableSourceLinkValidation: false
|
2024-09-12 20:26:06 +03:00
|
|
|
publishAssetsImmediately: true
|