Skip to content

Commit 1dc91a4

Browse files
Set low priority for scheduled runs (#225)
Co-authored-by: Ahmed Muhsin <[email protected]>
1 parent fc563db commit 1dc91a4

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 0 * * *"
2+
- cron: "0 4 * * *"
33
displayName: Nightly Build
44
branches:
55
include:
@@ -49,6 +49,9 @@ extends:
4949
name: 1es-pool-azfunc
5050
image: 1es-windows-2022
5151
os: windows
52+
${{ if eq( variables['Build.Reason'], 'Schedule' ) }}:
53+
demands:
54+
- Priority -equals Low
5255

5356
stages:
5457
- stage: BuildAndTest

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 4 * * *"
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)