Skip to content

Commit 47e168f

Browse files
authored
Set low priority for scheduled runs (#1249)
1 parent 00f70b7 commit 47e168f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

eng/ci/official-build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ schedules:
1313
# Build nightly to catch any new CVEs and report SDL often.
1414
# We are also required to generated CodeQL reports weekly, so this
1515
# helps us meet that.
16-
- cron: "0 0 * * *"
16+
- cron: "0 5 * * *"
1717
displayName: Nightly Build
1818
branches:
1919
include:
@@ -38,6 +38,9 @@ extends:
3838
name: 1es-pool-azfunc
3939
image: 1es-windows-2022
4040
os: windows
41+
${{ if eq( variables['Build.Reason'], 'Schedule' ) }}:
42+
demands:
43+
- Priority -equals Low
4144

4245
stages:
4346
- stage: BuildAndSign

eng/ci/public-build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ trigger:
1111

1212
# Run nightly to catch new CVEs and to report SDL often.
1313
schedules:
14-
- cron: "0 0 * * *"
14+
- cron: "0 5 * * *"
1515
displayName: Nightly Run
1616
branches:
1717
include:
@@ -41,6 +41,9 @@ extends:
4141
name: 1es-pool-azfunc-public
4242
image: 1es-windows-2022
4343
os: windows
44+
${{ if eq( variables['Build.Reason'], 'Schedule' ) }}:
45+
demands:
46+
- Priority -equals Low
4447

4548
sdl:
4649
codeql:

0 commit comments

Comments
 (0)