From 5a6c31c6a00e4b210319f2bf2d23f2b2f1a91fb1 Mon Sep 17 00:00:00 2001 From: "Daniel Castro (DevDiv)" Date: Sat, 11 Oct 2025 12:34:13 -0700 Subject: [PATCH] Set low priority for scheduled runs --- eng/ci/official.yml | 9 ++++++--- eng/ci/public.yml | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/eng/ci/official.yml b/eng/ci/official.yml index d12993d7..e79c49ae 100644 --- a/eng/ci/official.yml +++ b/eng/ci/official.yml @@ -6,8 +6,8 @@ trigger: - v3.x/* schedules: -- cron: "0 0 * * *" - displayName: Daily midnight build +- cron: "0 2 * * *" + displayName: Daily 2 AM build branches: include: - dev @@ -24,7 +24,10 @@ resources: type: git name: 1ESPipelineTemplates/1ESPipelineTemplates ref: refs/tags/release - + ${{ if eq( variables['Build.Reason'], 'Schedule' ) }}: + demands: + - Priority -equals Low + variables: Configuration: Release buildNumber: $[ counter('build', 4000) ] # Start higher than the versions from the previous pipeline. Every build (pr or branch) will increment. diff --git a/eng/ci/public.yml b/eng/ci/public.yml index ee250735..ad15b7ec 100644 --- a/eng/ci/public.yml +++ b/eng/ci/public.yml @@ -5,8 +5,8 @@ trigger: - dev schedules: -- cron: "0 0 * * *" - displayName: Daily midnight build +- cron: "0 2 * * *" + displayName: Daily 2 AM build branches: include: - dev @@ -26,7 +26,10 @@ extends: name: 1es-pool-azfunc-public image: 1es-windows-2022 os: windows - + ${{ if eq( variables['Build.Reason'], 'Schedule' ) }}: + demands: + - Priority -equals Low + stages: - stage: WindowsUnitTests dependsOn: []