From a062189b6928b37c51c8ecae27673b5c06bdc01b Mon Sep 17 00:00:00 2001 From: Peter Collins Date: Mon, 18 Jul 2022 16:57:36 -0400 Subject: [PATCH] [ci] Run OneLocBuild on a schedule 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 --- Localize/onelocbuild.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Localize/onelocbuild.yaml b/Localize/onelocbuild.yaml index 2bd90ca..d458975 100644 --- a/Localize/onelocbuild.yaml +++ b/Localize/onelocbuild.yaml @@ -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