-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
85 lines (79 loc) · 2.49 KB
/
azure-pipelines.yml
File metadata and controls
85 lines (79 loc) · 2.49 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
variables:
- template: /eng/common-variables.yml@self
- template: /eng/common/templates-official/variables/pool-providers.yml@self
# CI triggers
trigger:
batch: true
branches:
include:
- main
- release/*
- internal/release/*
pr: none
# Scheduled trigger - runs once per week on Sunday at midnight UTC
schedules:
- cron: '0 0 * * 0'
displayName: Weekly build
branches:
include:
- main
always: true
resources:
repositories:
- repository: 1ESPipelineTemplates
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
extends:
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
parameters:
settings:
networkIsolationPolicy: Permissive,CFSClean,CFSClean2
sdl:
tsa:
enabled: true
policheck:
enabled: true
binskim:
enabled: true
codeql:
${{ if startsWith(variables['Build.SourceBranch'], 'refs/heads/release/') }}:
enabledOnNonDefaultBranches: true
pool:
name: $(DncEngInternalBuildPool)
image: 1es-windows-2022
os: windows
stages:
- stage: Build
jobs:
- template: /eng/common/templates-official/jobs/jobs.yml@self
parameters:
enableTelemetry: true
enablePublishBuildArtifacts: true
enableMicrobuild: true
enablePublishUsingPipelines: true
${{ if ne(variables['Build.Reason'], 'Schedule') }}:
enablePublishBuildAssets: true
helixRepo: dotnet/xharness
jobs:
- job: Windows_NT
displayName: Build Windows
timeoutInMinutes: 120
steps:
- script: eng\common\CIBuild.cmd -configuration $(_BuildConfig) -prepareMachine $(_InternalBuildArgs) /p:Test=false
name: Build
displayName: Build
condition: succeeded()
- template: /eng/pipelines/apiscan-steps.yml
templateContext:
outputs:
- output: pipelineArtifact
artifact: Artifacts_Windows_NT
path: '$(Build.SourcesDirectory)\artifacts\bin\Microsoft.DotNet.XHarness.CLI'
displayName: 'Publish Windows_NT Artifacts'
condition: succeeded()
- ${{ if ne(variables['Build.Reason'], 'Schedule') }}:
- template: /eng/common/templates-official/post-build/post-build.yml@self
parameters:
enableSymbolValidation: true
enableSourceLinkValidation: true