diff --git a/eng/ci/official-build.yml b/eng/ci/official-build.yml index 9f39bb7a1..23eab48ef 100644 --- a/eng/ci/official-build.yml +++ b/eng/ci/official-build.yml @@ -13,7 +13,7 @@ schedules: # Build nightly to catch any new CVEs and report SDL often. # We are also required to generated CodeQL reports weekly, so this # helps us meet that. -- cron: "0 0 * * *" +- cron: "0 5 * * *" displayName: Nightly Build branches: include: @@ -38,6 +38,9 @@ extends: name: 1es-pool-azfunc image: 1es-windows-2022 os: windows + ${{ if eq( variables['Build.Reason'], 'Schedule' ) }}: + demands: + - Priority -equals Low stages: - stage: BuildAndSign diff --git a/eng/ci/public-build.yml b/eng/ci/public-build.yml index e3102a23d..95b1518a3 100644 --- a/eng/ci/public-build.yml +++ b/eng/ci/public-build.yml @@ -11,7 +11,7 @@ trigger: # Run nightly to catch new CVEs and to report SDL often. schedules: - - cron: "0 0 * * *" + - cron: "0 5 * * *" displayName: Nightly Run branches: include: @@ -41,6 +41,9 @@ extends: name: 1es-pool-azfunc-public image: 1es-windows-2022 os: windows + ${{ if eq( variables['Build.Reason'], 'Schedule' ) }}: + demands: + - Priority -equals Low sdl: codeql: