Skip to content

Commit 7547bb1

Browse files
authored
Set low priority for scheduled runs (#839)
1 parent 15ba13d commit 7547bb1

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
@@ -1,5 +1,5 @@
11
schedules:
2-
- cron: '0 20 * * *'
2+
- cron: "0 5 * * *"
33
displayName: Nightly Build
44
branches:
55
include:
@@ -44,6 +44,9 @@ extends:
4444
name: 1es-pool-azfunc
4545
image: 1es-windows-2022
4646
os: windows
47+
${{ if eq( variables['Build.Reason'], 'Schedule' ) }}:
48+
demands:
49+
- Priority -equals Low
4750

4851
stages:
4952
- stage: Build

eng/ci/public-build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
schedules:
2-
- cron: '0 0 * * *'
2+
- cron: "0 5 * * *"
33
displayName: Nightly Build
44
branches:
55
include:
@@ -31,6 +31,9 @@ extends:
3131
name: 1es-pool-azfunc-public
3232
image: 1es-windows-2022
3333
os: windows
34+
${{ if eq( variables['Build.Reason'], 'Schedule' ) }}:
35+
demands:
36+
- Priority -equals Low
3437

3538
sdl:
3639
codeql:

0 commit comments

Comments
 (0)