From 2f1324473001e9fd26c2ed7bbb92fb387732a0d0 Mon Sep 17 00:00:00 2001 From: Shilong Liu Date: Thu, 26 May 2022 11:28:31 +0800 Subject: [PATCH] [ci] Improve azp trigger settings to automaticlly support new release branch. (#2289) Signed-off-by: Shilong Liu --- azure-pipelines.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 06cd17686e1b..9bc567b67d11 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -3,10 +3,29 @@ # Add steps that publish test results, save build artifacts, deploy, and more: # https://docs.microsoft.com/azure/devops/pipelines/apps/c-cpp/gcc +pr: +- master +- 202??? +- 201??? + trigger: + batch: true + branches: + include: + - master + - 202??? + - 201??? + +# this part need to be set in UI +schedules: +- cron: "0 0 * * 6" + displayName: Weekly build branches: include: - - "*" + - master + - 202??? + - 201??? + always: true stages: - stage: Build