-
Notifications
You must be signed in to change notification settings - Fork 273
/
Copy pathazure-pipelines.yml
95 lines (86 loc) · 2.47 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
84
85
86
87
88
89
90
91
92
93
94
95
parameters:
- name: runPublicJobs
type: boolean
default: false
- name: runPrivateJobs
type: boolean
default: false
- name: runScheduledPrivateJobs
type: boolean
default: false
- name: onlySanityCheck
type: boolean
default: false
resources:
containers:
- container: ubuntu_x64_build_container
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04
trigger:
branches:
include:
- main
paths:
exclude: # don't trigger if only docs and similar files changed
- docs/*
- '**/*.md'
- 'gc-azure-pipelines.yml'
- src/benchmarks/gc/*
pr:
branches:
include:
- main
paths:
exclude: # don't trigger if only docs and similar files changed
- docs/*
- '**/*.md'
- scripts/benchmarks_monthly.py
- 'gc-azure-pipelines.yml'
- src/benchmarks/gc/*
schedules:
- cron: "0 */12 * * *"
displayName: Every 12 hours build
branches:
include:
- main
always: true
- cron: "0 21 * * THU"
displayName: Weekly Build
branches:
include:
- main
always: true
jobs:
- template: /eng/pipelines/sdk-perf-jobs.yml
parameters:
${{ if or(eq(variables['System.TeamProject'], 'public'), parameters.runPublicJobs) }}:
runPublicJobs: true
${{ if ne(variables['System.TeamProject'], 'public') }}:
${{ if or(notin(variables['Build.Reason'], 'PullRequest', 'Manual'), parameters.runPrivateJobs) }}:
runPrivateJobs: true
${{ if or(eq(variables['Build.CronSchedule.DisplayName'], 'Every 12 hours build'), parameters.runScheduledPrivateJobs) }}:
runScheduledPrivateJobs: true
jobParameters:
${{ if parameters.onlySanityCheck }}:
onlySanityCheck: true
- ${{ if and(ne(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'Schedule', 'Manual')) }}:
# Secret Sync
- job: Synchronize
pool:
name: NetCore1ESPool-Internal-NoMSI
demands: ImageOverride -equals 1es-windows-2019
steps:
- task: UseDotNet@2
displayName: Install .NET 6.0
inputs:
version: 6.x
- task: DeleteFiles@1
inputs:
Contents: global.json
- script: dotnet tool restore
- task: AzureCLI@2
inputs:
azureSubscription: .NET Performance (790c4451-dad9-4fda-af8b-10bd9ca328fa)
scriptType: ps
scriptLocation: inlineScript
inlineScript: |
Get-ChildItem .vault-config/*.yaml |% { dotnet secret-manager synchronize $_}