|
25 | 25 | - src/plugins/*
|
26 | 26 | - docs/*
|
27 | 27 |
|
| 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 | + |
28 | 37 | name: 0.$(Date:yyyy).$(Date:MM).$(DayOfMonth).$(Rev:rr).0
|
29 | 38 |
|
30 | 39 | resources:
|
@@ -394,39 +403,39 @@ stages:
|
394 | 403 | # Mirror
|
395 | 404 | #
|
396 | 405 |
|
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) |
420 | 429 |
|
421 | 430 | #
|
422 | 431 | # Distribution
|
423 | 432 | #
|
424 | 433 |
|
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