Skip to content

Commit 7b790d7

Browse files
authored
Set low priority for scheduled runs (#1117)
1 parent b2907b9 commit 7b790d7

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

eng/ci/official.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ trigger:
66
- v3.x/*
77

88
schedules:
9-
- cron: "0 0 * * *"
10-
displayName: Daily midnight build
9+
- cron: "0 2 * * *"
10+
displayName: Daily 2 AM build
1111
branches:
1212
include:
1313
- dev
@@ -24,7 +24,10 @@ resources:
2424
type: git
2525
name: 1ESPipelineTemplates/1ESPipelineTemplates
2626
ref: refs/tags/release
27-
27+
${{ if eq( variables['Build.Reason'], 'Schedule' ) }}:
28+
demands:
29+
- Priority -equals Low
30+
2831
variables:
2932
Configuration: Release
3033
buildNumber: $[ counter('build', 4000) ] # Start higher than the versions from the previous pipeline. Every build (pr or branch) will increment.

eng/ci/public.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ trigger:
55
- dev
66

77
schedules:
8-
- cron: "0 0 * * *"
9-
displayName: Daily midnight build
8+
- cron: "0 2 * * *"
9+
displayName: Daily 2 AM build
1010
branches:
1111
include:
1212
- dev
@@ -26,7 +26,10 @@ extends:
2626
name: 1es-pool-azfunc-public
2727
image: 1es-windows-2022
2828
os: windows
29-
29+
${{ if eq( variables['Build.Reason'], 'Schedule' ) }}:
30+
demands:
31+
- Priority -equals Low
32+
3033
stages:
3134
- stage: WindowsUnitTests
3235
dependsOn: []

0 commit comments

Comments
 (0)