This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
sonic-buildimage/.azure-pipelines
Ye Jianquan e91e38810a Enable to cancel pipeline jobs during checkout code and tests (#12436)
co-authorized by: jianquanye@microsoft.com

Why I did it
Now, checkout code step and KVM test job can't be cancelled even though the whole build is cancelled.
That's because by using Azure Pipeline Conditions, we customized the running condition, and we need to react to the Cancel action explicitly by asserting 'succeeded'
https://learn.microsoft.com/en-us/azure/devops/pipelines/process/expressions?view=azure-devops#succeeded
https://learn.microsoft.com/en-us/azure/devops/pipelines/process/conditions?view=azure-devops&tabs=yaml#ive-got-a-conditional-step-that-runs-even-when-a-job-is-canceled-how-do-i-manage-to-cancel-all-jobs-at-once

How I did it
Assert 'succeeded' condition explicitly.

How to verify it
Verified by cancelling and rerunning the azure pipeline.
2022-10-25 20:46:33 +00:00
..
azure-pipelines-build.yml Build the Broadcom DNX RPC container as part of the official build (#11829) 2022-08-27 16:16:17 +00:00
azure-pipelines-download-certificate.yml [Ci]: Support to sign image for cisco-8000 uefi secure boot (#10616) 2022-04-21 12:13:09 +08:00
azure-pipelines-image-template.yml Enable to cancel pipeline jobs during checkout code and tests (#12436) 2022-10-25 20:46:33 +00:00
azure-pipelines-job-groups.yml [ci]: Increase pipeline build timeout from 12 hours to 15 hours (#9200) 2021-11-09 07:35:18 -08:00
azure-pipelines-Official.yml Add azure pipelines for reproducible build (#6870) 2021-02-25 13:44:58 +08:00
azure-pipelines-repd-build-variables.yml [ci] Enable reproducible build in PR checks. (#11411) 2022-07-13 16:58:37 +08:00
azure-pipelines-UpgrateVersion.yml [ci] Update azp reference to support transfering organization from Azure to sonic-net (#11602) 2022-08-02 16:24:46 +08:00
build-commonlib.yml [ci] Update azp reference to support transfering organization from Azure to sonic-net (#11602) 2022-08-02 16:24:46 +08:00
build-template.yml [ci]: get build logs when build fails (#7219) 2021-04-03 09:28:56 -07:00
check-dirty-version.yml [Ci]: check if there is a sonic dirty version issue (#10445) 2022-04-08 10:49:21 +08:00
cleanup.yml [CI] Fix pipeline template artifacts struct bug and cleanup bug 2021-04-21 09:03:11 -07:00
docker-sonic-mgmt.yml [CI] Add publish step in docker-sonic-mgmt azure pipeline (#7902) 2021-06-17 10:26:21 -07:00
docker-sonic-slave-template.yml [ci] Use absolute template file path in docker-sonic-slave pipeline. (#12153) (#12345) 2022-10-13 12:41:58 +08:00
docker-sonic-slave.yml [ci] Update docker sonic slave pipeline to build slave base docker (#11908) (#12340) 2022-10-10 21:55:22 +08:00
dpkg-cache-cleanup.yml [CI] Add Bldenv pipeline files (#7458) 2021-04-30 16:35:38 -07:00
official-build-cache.yml [Build]: Enable marvell-armhf PR check (#10259) 2022-03-23 22:36:53 +08:00
official-build-cisco-8000.yml [ci] Fix some not sai package removed issue (#11544) 2022-07-28 20:38:05 +00:00
official-build-multi-asic.yml [Build]: Support reproducible build for release branches (#9426) 2021-12-23 16:16:55 +08:00
official-build.yml [ci] Update azp reference to support transfering organization from Azure to sonic-net (#11602) 2022-08-02 16:24:46 +08:00
run-test-scheduler-template.yml [TestbedV2]Migrate t0 and t1-lag to TestbedV2 (#12383) (#12474) 2022-10-24 13:25:18 -07:00
run-test-template.yml [azurepipeline]: Add t0-sonic pool back to Azp checker (#11181) 2022-06-22 23:09:26 +00:00
template-clean-sonic-slave.yml [ci] Set default ACR in UpgrateVersion/PR/official pipeline. (#10341) 2022-04-02 07:48:44 +08:00
template-commonlib.yml [ci] Add arm artifacts in common lib azure pipeline (#10817) 2022-05-23 17:52:56 +08:00
template-skipvstest.yml [build] Add version files to docker image dependencies (#11195) 2022-06-22 14:12:25 +08:00
template-variables.yml [Build] Improve docker build performance (#11111) 2022-06-17 03:31:53 +00:00
trigger-publish-artifacts-build.yml [Ci]: Fix to trigger the publish pipeline in failure build issue (#10847) 2022-05-20 14:32:53 +08:00
vstest-exclude [build] Add version files to docker image dependencies (#11195) 2022-06-22 14:12:25 +08:00
vstest-include [build] Add version files to docker image dependencies (#11195) 2022-06-22 14:12:25 +08:00