-
Notifications
You must be signed in to change notification settings - Fork 753
Expand file tree
/
Copy pathpull_request.yml
More file actions
101 lines (98 loc) · 3.24 KB
/
pull_request.yml
File metadata and controls
101 lines (98 loc) · 3.24 KB
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
parameters:
- name: RunBuildForPublishing
displayName: Build bits for publishing
type: boolean
default: true
- name: RunCrossFrameworkTestsOnWindows
displayName: Run cross framework tests on Windows
type: boolean
default: false
- name: RunUnitTestsOnWindows
displayName: Run unit tests on Windows
type: boolean
default: false
- name: RunFunctionalTestsOnWindows
displayName: Run functional tests on Windows
type: boolean
default: false
- name: RunSourceBuild
displayName: Run source build
type: boolean
default: false
- name: RunTestsOnLinux
displayName: Run tests on Linux
type: boolean
default: false
- name: RunTestsOnMac
displayName: Run tests on Mac
type: boolean
default: false
- name: RunMonoTestsOnMac
displayName: Run Mono tests on Mac
type: boolean
default: false
- name: RunStaticAnalysis
displayName: Run static analysis
type: boolean
default: false
- name: SigningType
displayName: Type of signing to use
type: string
default: Test
resources:
repositories:
- repository: MicroBuildTemplate
type: git
name: 1ESPipelineTemplates/MicroBuildTemplate
ref: refs/tags/release
variables:
BINLOG_DIRECTORY: $(Build.StagingDirectory)/binlog
DOTNET_NOLOGO: 1
NUGET_EXPERIMENTAL_CHAIN_BUILD_RETRY_POLICY: 3,1000
Codeql.Enabled: false
Codeql.TSAEnabled: false
RunBuildForPublishing: ${{ parameters.RunBuildForPublishing }}
RunCrossFrameworkTestsOnWindows: ${{ parameters.RunCrossFrameworkTestsOnWindows }}
RunUnitTestsOnWindows: ${{ parameters.RunUnitTestsOnWindows }}
RunFunctionalTestsOnWindows: ${{ parameters.RunFunctionalTestsOnWindows }}
RunSourceBuild: ${{ parameters.RunSourceBuild }}
RunTestsOnLinux: ${{ parameters.RunTestsOnLinux }}
RunTestsOnMac: ${{ parameters.RunTestsOnMac }}
RunMonoTestsOnMac: ${{ parameters.RunMonoTestsOnMac }}
RunStaticAnalysis: ${{ parameters.RunStaticAnalysis }}
SourceBranch: $[replace(variables['Build.SourceBranch'], 'refs/heads/', '')]
extends:
template: azure-pipelines/MicroBuild.1ES.Unofficial.yml@MicroBuildTemplate
parameters:
sdl:
sourceAnalysisPool: VSEngSS-MicroBuild2022-1ES
binskim:
enabled: true
scanOutputDirectoryOnly: true
sbom:
enabled: true
credscan:
enabled: false
suppression:
suppressionFile: $(Build.SourcesDirectory)\.gdn\.gdnsuppress
pool:
name: AzurePipelines-EO
image: 1ESPT-Windows2022
os: windows
featureFlags:
enablePrepareFilesForSbom: true
customBuildTags:
- ES365AIMigrationTooling
stages:
- template: /eng/pipelines/templates/pipeline.yml@self
parameters:
RunBuildForPublishing: ${{parameters.RunBuildForPublishing}}
RunCrossFrameworkTestsOnWindows: ${{parameters.RunCrossFrameworkTestsOnWindows}}
RunUnitTestsOnWindows: ${{parameters.RunUnitTestsOnWindows}}
RunFunctionalTestsOnWindows: ${{parameters.RunFunctionalTestsOnWindows}}
RunSourceBuild: ${{parameters.RunSourceBuild}}
RunTestsOnLinux: ${{parameters.RunTestsOnLinux}}
RunTestsOnMac: ${{parameters.RunTestsOnMac}}
RunMonoTestsOnMac: ${{parameters.RunMonoTestsOnMac}}
RunStaticAnalysis: ${{parameters.RunStaticAnalysis}}
SigningType: ${{ parameters.SigningType }}