Skip to content

Commit

Permalink
Weekly Release Build (microsoft#1123) (microsoft#1125)
Browse files Browse the repository at this point in the history
  • Loading branch information
nibanks authored Dec 24, 2020
1 parent d4219b5 commit b6c13f3
Showing 1 changed file with 40 additions and 31 deletions.
71 changes: 40 additions & 31 deletions .azure/azure-pipelines.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ pr:
- src/plugins/*
- docs/*

# Periodically rebuild release branches to make sure they are functional.
schedules:
- cron: "0 0 * * Mon"
displayName: Weekly Release Build
branches:
include:
- release/*
always: true

name: 0.$(Date:yyyy).$(Date:MM).$(DayOfMonth).$(Rev:rr).0

resources:
Expand Down Expand Up @@ -394,39 +403,39 @@ stages:
# Mirror
#

- stage: mirror
displayName: Mirror Branch
dependsOn:
- build_windows
- build_winkernel
- build_linux
condition: and(in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'), not(startsWith(variables['Build.SourceBranch'], 'refs/heads/feature/')), succeeded())
jobs:
- job: mirror
displayName: Mirror
pool:
vmImage: windows-latest
steps:
- checkout: self
persistCredentials: true
- task: PowerShell@2
displayName: Sync Changes to AzDO Mirror Branch
inputs:
pwsh: true
filePath: scripts/sync-mirror.ps1
arguments: -Branch $(Build.SourceBranch)
env:
AzDO_PAT: $(AzDO_PAT)
- ${{ if and(in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'), not(eq(variables['Build.Reason'], 'Schedule')), not(startsWith(variables['Build.SourceBranch'], 'refs/heads/feature/'))) }}:
- stage: mirror
displayName: Mirror Branch
dependsOn:
- build_windows
- build_winkernel
- build_linux
jobs:
- job: mirror
displayName: Mirror
pool:
vmImage: windows-latest
steps:
- checkout: self
persistCredentials: true
- task: PowerShell@2
displayName: Sync Changes to AzDO Mirror Branch
inputs:
pwsh: true
filePath: scripts/sync-mirror.ps1
arguments: -Branch $(Build.SourceBranch)
env:
AzDO_PAT: $(AzDO_PAT)

#
# Distribution
#

- stage: distribution
displayName: Distribution
dependsOn:
- build_windows
- build_linux
condition: and(in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'), not(startsWith(variables['Build.SourceBranch'], 'refs/heads/feature/')), succeeded())
jobs:
- template: ./templates/build-distribution.yml
- ${{ if and(in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'), not(eq(variables['Build.Reason'], 'Schedule')), not(startsWith(variables['Build.SourceBranch'], 'refs/heads/feature/'))) }}:
- stage: distribution
displayName: Distribution
dependsOn:
- build_windows
- build_linux
jobs:
- template: ./templates/build-distribution.yml

0 comments on commit b6c13f3

Please sign in to comment.