From 2f6840060eb86641034a18b4f4385c39458f8d23 Mon Sep 17 00:00:00 2001 From: Chun'ang Li <39114813+lerry-lee@users.noreply.github.com> Date: Wed, 30 Apr 2025 09:51:41 +0800 Subject: [PATCH] [CI]Update official build vs pipeline trigger, enable branch push trigger [202305] (#22470) Why I did it Every branch push needs to trigger the pipeline to build a new image for PR testing; otherwise, PR testing may use the legacy build to encounter failures. Work item tracking Microsoft ADO (number only): How I did it Update schedule task, make it run once every day(reduce frequency). Enable branch trigger on supported branches. How to verify it After merge, https://dev.azure.com/mssonic/build/_build?definitionId=2925&_a=summary will work for new update. Signed-off-by: Chun'ang Li --- .azure-pipelines/official-build-vs-with-test.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines/official-build-vs-with-test.yml b/.azure-pipelines/official-build-vs-with-test.yml index 644f6106e1..3a1e271963 100644 --- a/.azure-pipelines/official-build-vs-with-test.yml +++ b/.azure-pipelines/official-build-vs-with-test.yml @@ -2,8 +2,9 @@ name: $(Build.DefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd) +# trigger this pipeline automatically by schedule. schedules: - - cron: "0 */8 * * *" # At 0 minutes past the hour, every 8 hours, every day UTC + - cron: "0 8 * * *" # At 08:00, every day UTC displayName: "Daily Build and Test SONiC virtual images" branches: include: @@ -13,7 +14,16 @@ schedules: - 202405 - 202411 -trigger: none +# trigger this pipeline automatically on any branch push. +trigger: + branches: + include: + - master + - 202305 + - 202311 + - 202405 + - 202411 + pr: none resources: