-
Notifications
You must be signed in to change notification settings - Fork 9
/
azure-pipelines.yml
83 lines (78 loc) · 2.33 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
trigger:
batch: true
branches:
include:
- main
- release/*
paths:
exclude:
- README.md
- docs/*
pr: none
variables:
- template: /eng/common/templates-official/variables/pool-providers.yml@self
- name: _TeamName
value: .NETCore
resources:
repositories:
- repository: 1ESPipelineTemplates
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
extends:
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
parameters:
pool:
name: $(DncEngInternalBuildPool)
image: 1es-windows-2022
os: windows
sdl:
policheck:
enabled: true
tsa:
enabled: true
stages:
- stage: build
displayName: Build
jobs:
- template: /eng/common/templates-official/jobs/jobs.yml@self
parameters:
artifacts:
publish:
artifacts: true
logs: true
manifests: true
enableMicrobuild: true
enablePublishTestResults: true
enablePublishUsingPipelines: true
enableTelemetry: true
enableSourceBuild: true
publishAssetsImmediately: true
helixRepo: dotnet/scenario-tests
jobs:
- job: Windows
pool:
name: $(DncEngInternalBuildPool)
demands: ImageOverride -equals 1es-windows-2022
variables:
# Publish-Build-Assets provides: MaestroAccessToken, BotAccount-dotnet-maestro-bot-PAT
- group: Publish-Build-Assets
- name: _OfficialBuildArgs
value: /p:OfficialBuildId=$(BUILD.BUILDNUMBER)
strategy:
matrix:
Release:
_BuildConfig: Release
_BuildArgs: $(_OfficialBuildArgs) /p:DotNetPublishUsingPipelines=true
steps:
- checkout: self
clean: true
- script: eng\common\CIBuild.cmd -configuration $(_BuildConfig) -prepareMachine $(_BuildArgs)
displayName: Build and Test
- template: eng\common\templates-official\post-build\post-build.yml@self
parameters:
enableSymbolValidation: false
enableSigningValidation: false
enableNugetValidation: false
enableSourceLinkValidation: false
publishAssetsImmediately: true