forked from dotnet/dotnet-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdotnet-monitor.yml
119 lines (115 loc) · 3.87 KB
/
dotnet-monitor.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
trigger: none
pr:
autoCancel: true
branches:
include:
- main
- release/*
- internal/release/*
- feature/*
variables:
- name: _TeamName
value: DotNetCore
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
# DotNet-Diagnostics-SDL-Params provides Tsa* variables for SDL checks.
- group: DotNet-Diagnostics-SDL-Params
stages:
- stage: Build
jobs:
- template: /eng/build.yml
parameters:
name: WindowsDebug
displayName: Windows Debug
osGroup: Windows
configuration: Debug
- template: /eng/build.yml
parameters:
name: WindowsRelease
displayName: Windows Release
osGroup: Windows
configuration: Release
signAndPublishArtifacts: true
- template: /eng/build.yml
parameters:
name: CentOSDebug
displayName: CentOS Debug
osGroup: Linux
configuration: Debug
- template: /eng/build.yml
parameters:
name: CentOSRelease
displayName: CentOS Release
osGroup: Linux
configuration: Release
- template: /eng/build.yml
parameters:
name: AlpineDebug
displayName: Alpine Debug
osGroup: Linux_Musl
configuration: Debug
- template: /eng/build.yml
parameters:
name: AlpineRelease
displayName: Alpine Release
osGroup: Linux_Musl
configuration: Release
- template: /eng/build.yml
parameters:
name: MacOSDebug
displayName: MacOS Debug
osGroup: MacOS
configuration: Debug
- template: /eng/build.yml
parameters:
name: MacOSRelease
displayName: MacOS Release
osGroup: MacOS
configuration: Release
# This registers the build with BAR.
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
- template: /eng/common/templates/job/publish-build-assets.yml
parameters:
configuration: Release
dependsOn:
- WindowsDebug
- WindowsRelease
- CentOSDebug
- CentOSRelease
- AlpineDebug
- AlpineRelease
- MacOSDebug
- MacOSRelease
publishUsingPipelines: true
pool:
name: NetCore1ESPool-Internal
demands: ImageOverride -equals build.windows.10.amd64.vs2017
# These are the stages that perform validation of several SDL requirements and publish the bits required to the designated feed.
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
- template: /eng/common/templates/post-build/post-build.yml
parameters:
# This is to enable SDL runs part of Post-Build Validation Stage.
# as well as NuGet, SourceLink, and signing validation.
# The variables get imported from group dotnet-diagnostics-sdl-params
publishingInfraVersion: 3
enableSourceLinkValidation: true
enableSigningValidation: true
enableSymbolValidation: false
enableNugetValidation: true
publishInstallersAndChecksums: true
SDLValidationParameters:
enable: true
continueOnError: true
params: ' -SourceToolsList @("policheck","credscan")
-TsaInstanceURL $(_TsaInstanceURL)
-TsaProjectName $(_TsaProjectName)
-TsaNotificationEmail $(_TsaNotificationEmail)
-TsaCodebaseAdmin $(_TsaCodebaseAdmin)
-TsaBugAreaPath $(_TsaBugAreaPath)
-TsaIterationPath $(_TsaIterationPath)
-TsaRepositoryName "dotnet-monitor"
-TsaCodebaseName "dotnet-monitor"
-TsaPublish $True'
artifactNames:
- 'PackageArtifacts'
# This sets up the bits to do a Release.
- template: /eng/PrepareRelease.yml