Skip to content

Commit b6c13f3

Browse files
authored
Weekly Release Build (#1123) (#1125)
1 parent d4219b5 commit b6c13f3

File tree

1 file changed

+40
-31
lines changed

1 file changed

+40
-31
lines changed

.azure/azure-pipelines.ci.yml

+40-31
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ pr:
2525
- src/plugins/*
2626
- docs/*
2727

28+
# Periodically rebuild release branches to make sure they are functional.
29+
schedules:
30+
- cron: "0 0 * * Mon"
31+
displayName: Weekly Release Build
32+
branches:
33+
include:
34+
- release/*
35+
always: true
36+
2837
name: 0.$(Date:yyyy).$(Date:MM).$(DayOfMonth).$(Rev:rr).0
2938

3039
resources:
@@ -394,39 +403,39 @@ stages:
394403
# Mirror
395404
#
396405

397-
- stage: mirror
398-
displayName: Mirror Branch
399-
dependsOn:
400-
- build_windows
401-
- build_winkernel
402-
- build_linux
403-
condition: and(in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'), not(startsWith(variables['Build.SourceBranch'], 'refs/heads/feature/')), succeeded())
404-
jobs:
405-
- job: mirror
406-
displayName: Mirror
407-
pool:
408-
vmImage: windows-latest
409-
steps:
410-
- checkout: self
411-
persistCredentials: true
412-
- task: PowerShell@2
413-
displayName: Sync Changes to AzDO Mirror Branch
414-
inputs:
415-
pwsh: true
416-
filePath: scripts/sync-mirror.ps1
417-
arguments: -Branch $(Build.SourceBranch)
418-
env:
419-
AzDO_PAT: $(AzDO_PAT)
406+
- ${{ if and(in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'), not(eq(variables['Build.Reason'], 'Schedule')), not(startsWith(variables['Build.SourceBranch'], 'refs/heads/feature/'))) }}:
407+
- stage: mirror
408+
displayName: Mirror Branch
409+
dependsOn:
410+
- build_windows
411+
- build_winkernel
412+
- build_linux
413+
jobs:
414+
- job: mirror
415+
displayName: Mirror
416+
pool:
417+
vmImage: windows-latest
418+
steps:
419+
- checkout: self
420+
persistCredentials: true
421+
- task: PowerShell@2
422+
displayName: Sync Changes to AzDO Mirror Branch
423+
inputs:
424+
pwsh: true
425+
filePath: scripts/sync-mirror.ps1
426+
arguments: -Branch $(Build.SourceBranch)
427+
env:
428+
AzDO_PAT: $(AzDO_PAT)
420429

421430
#
422431
# Distribution
423432
#
424433

425-
- stage: distribution
426-
displayName: Distribution
427-
dependsOn:
428-
- build_windows
429-
- build_linux
430-
condition: and(in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'), not(startsWith(variables['Build.SourceBranch'], 'refs/heads/feature/')), succeeded())
431-
jobs:
432-
- template: ./templates/build-distribution.yml
434+
- ${{ if and(in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'), not(eq(variables['Build.Reason'], 'Schedule')), not(startsWith(variables['Build.SourceBranch'], 'refs/heads/feature/'))) }}:
435+
- stage: distribution
436+
displayName: Distribution
437+
dependsOn:
438+
- build_windows
439+
- build_linux
440+
jobs:
441+
- template: ./templates/build-distribution.yml

0 commit comments

Comments
 (0)