Skip to content

Commit 832c75f

Browse files
authored
[6.1] Update CI pipelines to trigger for PR, commits, and schedules (#3769)
1 parent 5200419 commit 832c75f

2 files changed

Lines changed: 83 additions & 22 deletions

File tree

eng/pipelines/dotnet-sqlclient-ci-package-reference-pipeline.yml

Lines changed: 42 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,59 @@
55
#################################################################################
66

77
name: $(DayOfYear)$(Rev:rr)
8-
trigger:
9-
batch: true
8+
9+
# Trigger PR validation runs for all pushes to PRs that target the specified
10+
# branches.
11+
#
12+
# https://learn.microsoft.com/en-us/azure/devops/pipelines/repos/github?view=azure-devops&tabs=yaml#pr-triggers
13+
#
14+
pr:
1015
branches:
1116
include:
1217
- release/6.1
13-
- internal/release/6.1
18+
1419
paths:
1520
include:
16-
- src\Microsoft.Data.SqlClient\netcore\ref
17-
- src\Microsoft.Data.SqlClient\netfx\ref
18-
- src\Microsoft.Data.SqlClient\ref
21+
- .azuredevops
22+
- .config
23+
- doc
1924
- eng
25+
- src
2026
- tools
21-
- .config
22-
- Nuget.config
27+
- azurepipelines-coverage.yml
28+
- build.proj
29+
- NuGet.config
2330

24-
schedules:
25-
- cron: '0 5 * * Sun'
26-
displayName: Weekly Saturday 10:00 PM (UTC - 7) Build
31+
# Commit triggers for CI runs on specified branches.
32+
#
33+
# No paths filters are specified, so all commits to the branches will trigger a
34+
# build.
35+
#
36+
trigger:
37+
batch: true
2738
branches:
2839
include:
40+
- release/6.1
2941
- internal/release/6.1
30-
always: true
42+
43+
# Scheduled runs.
44+
schedules:
45+
46+
# GitHub on Sundays 04:30 UTC.
47+
- cron: '30 4 * * Sun'
48+
displayName: Sunday Run
49+
branches:
50+
include:
51+
- release/6.1
52+
always: true
53+
54+
# ADO on Sundays 05:30 UTC.
55+
- cron: '30 5 * * Sun'
56+
displayName: Sunday Run
57+
branches:
58+
include:
59+
- internal/release/6.1
60+
always: true
3161

3262
parameters: # parameters are shown up in ADO UI in a build queue time
3363
- name: 'debug'

eng/pipelines/dotnet-sqlclient-ci-project-reference-pipeline.yml

Lines changed: 41 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,59 @@
55
#################################################################################
66

77
name: $(DayOfYear)$(Rev:rr)
8-
trigger:
9-
batch: true
8+
9+
# Trigger PR validation runs for all pushes to PRs that target the specified
10+
# branches.
11+
#
12+
# https://learn.microsoft.com/en-us/azure/devops/pipelines/repos/github?view=azure-devops&tabs=yaml#pr-triggers
13+
#
14+
pr:
1015
branches:
1116
include:
1217
- release/6.1
13-
- internal/release/6.1
18+
1419
paths:
1520
include:
16-
- src
21+
- .azuredevops
22+
- .config
23+
- doc
1724
- eng
25+
- src
1826
- tools
19-
- .config
27+
- azurepipelines-coverage.yml
2028
- build.proj
21-
- Nuget.config
29+
- NuGet.config
2230

23-
schedules:
24-
- cron: '0 5 * * Sun'
25-
displayName: Weekly Saturday 10:00 PM (UTC - 7) Build
31+
# Commit triggers for CI runs on specified branches.
32+
#
33+
# No paths filters are specified, so all commits to the branches will trigger a
34+
# build.
35+
#
36+
trigger:
37+
batch: true
2638
branches:
2739
include:
40+
- release/6.1
2841
- internal/release/6.1
29-
always: true
42+
43+
# Scheduled runs.
44+
schedules:
45+
46+
# GitHub on Sundays 04:00 UTC.
47+
- cron: '0 4 * * Sun'
48+
displayName: Sunday Run
49+
branches:
50+
include:
51+
- release/6.1
52+
always: true
53+
54+
# ADO on Sundays 05:00 UTC.
55+
- cron: '0 5 * * Sun'
56+
displayName: Sunday Run
57+
branches:
58+
include:
59+
- internal/release/6.1
60+
always: true
3061

3162
parameters: # parameters are shown up in ADO UI in a build queue time
3263
- name: 'debug'

0 commit comments

Comments
 (0)