Skip to content

Commit

Permalink
[ci] Run OneLocBuild on a schedule (#180)
Browse files Browse the repository at this point in the history
The xamarin-android-tools repo now builds in both the xamarin/public and
devdiv/DevDiv Azure DevOps orgs, and unfortunately CI triggers only work
for [one organization at a time][0]:

    "However, if you create pipelines for a single repository in multiple
    Azure DevOps organizations, only the first organization's pipelines
    can be automatically triggered by GitHub commits or pull requests."

Since the OneLocBuild job can't run against every commit automatically,
the job has been updated to run on a daily schedule so that we can still
get continuous builds.

[0]: https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/github?view=azure-devops&tabs=yaml#create-pipelines-in-multiple-azure-devops-organizations-and-projects
  • Loading branch information
pjcollins committed Jul 20, 2022
1 parent 8ab60e4 commit 327d433
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Localize/onelocbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@

name: $(Build.SourceBranchName)-$(Build.SourceVersion)-$(Rev:r)

trigger:
- main
trigger: none

pr: none

schedules:
- cron: "0 6 * * *"
displayName: Run daily at 6:00 UTC
branches:
include:
- main

jobs:
- job: OneLocBuild
displayName: OneLocBuild
Expand Down

0 comments on commit 327d433

Please sign in to comment.